aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/commands/__init__.py3
-rw-r--r--modules/thesaurus.py3
2 files changed, 4 insertions, 2 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"]
diff --git a/modules/thesaurus.py b/modules/thesaurus.py
index 25754a47..d2a0b3a4 100644
--- a/modules/thesaurus.py
+++ b/modules/thesaurus.py
@@ -6,7 +6,8 @@ from src import ModuleManager, utils
URL_THESAURUS = "http://words.bighugelabs.com/api/2/%s/%s/json"
class Module(ModuleManager.BaseModule):
- @utils.hook("received.command.synonym|antonym", min_args=1)
+ @utils.hook("received.command.synonym", min_args=1)
+ @utils.hook("received.command.antonym", min_args=1)
def thesaurus(self, event):
"""
:help: Get synonyms/antonyms for a provided phrase