From ccfb841d6c17aaacbee269d1a02f6cbf1dfc6df1 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 13 Sep 2015 02:35:55 -0500 Subject: [PATCH] Forgot to subscribe to JOIN hooks for welcomer. --- commands/welcome.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/welcome.py b/commands/welcome.py index fc95535..2169283 100644 --- a/commands/welcome.py +++ b/commands/welcome.py @@ -29,6 +29,7 @@ class Welcome(Command): """Welcome people who enter certain channels.""" name = "welcome" commands = ["welcome", "greet"] + hooks = ["join", "msg"] def setup(self): try: @@ -99,7 +100,8 @@ class Welcome(Command): self.reply(data, msg.format(data.arg[1])) else: 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])) elif data.arg[0] == "enable": if len(data.arg) < 2: