aboutsummaryrefslogtreecommitdiff
path: root/modules/commands/__init__.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-26 10:59:03 +0100
committerGravatar jesopo2019-06-26 10:59:03 +0100
commit6667f49ee394a86cba0f9763d4afcd1b49a897c6 (patch)
treefb318bfbbc31ec1e5ab6c92f2f1f816a7ba7067c /modules/commands/__init__.py
parentadd --depends-on hashflags to shorturl.py (diff)
signature
dont use "|" multi-event syntax. it's weird
Diffstat (limited to 'modules/commands/__init__.py')
-rw-r--r--modules/commands/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/commands/__init__.py b/modules/commands/__init__.py
index 54bb6db3..d5f1435d 100644
--- a/modules/commands/__init__.py
+++ b/modules/commands/__init__.py
@@ -40,7 +40,8 @@ def _command_method_validate(s):
"help": "Disable/enable responding to prefixed commands in-channel",
"validate": utils.bool_or_none, "example": "on"})
class Module(ModuleManager.BaseModule):
- @utils.hook("new.user|channel")
+ @utils.hook("new.user")
+ @utils.hook("new.channel")
def new(self, event):
if "user" in event:
target = event["user"]