|
@@ -29,6 +29,7 @@ class Welcome(Command): |
|
|
"""Welcome people who enter certain channels.""" |
|
|
"""Welcome people who enter certain channels.""" |
|
|
name = "welcome" |
|
|
name = "welcome" |
|
|
commands = ["welcome", "greet"] |
|
|
commands = ["welcome", "greet"] |
|
|
|
|
|
hooks = ["join", "msg"] |
|
|
|
|
|
|
|
|
def setup(self): |
|
|
def setup(self): |
|
|
try: |
|
|
try: |
|
@@ -99,7 +100,8 @@ class Welcome(Command): |
|
|
self.reply(data, msg.format(data.arg[1])) |
|
|
self.reply(data, msg.format(data.arg[1])) |
|
|
else: |
|
|
else: |
|
|
self.disabled.append(data.arg[1]) |
|
|
self.disabled.append(data.arg[1]) |
|
|
msg = "Disabled welcoming in \x02{0}\x0F." |
|
|
|
|
|
|
|
|
msg = ("Disabled welcoming in \x02{0}\x0F. Re-enable with " |
|
|
|
|
|
"\x0306!welcome enable {0}\x0F.") |
|
|
self.reply(data, msg.format(data.arg[1])) |
|
|
self.reply(data, msg.format(data.arg[1])) |
|
|
elif data.arg[0] == "enable": |
|
|
elif data.arg[0] == "enable": |
|
|
if len(data.arg) < 2: |
|
|
if len(data.arg) < 2: |
|
|