Refactors hooks registration

This commit is contained in:
nemunaire 2015-11-02 20:19:12 +01:00
commit f39a0eac56
40 changed files with 202 additions and 168 deletions

View file

@ -20,7 +20,7 @@ def search(terms):
# MODULE INTERFACE ####################################################
@hook("cmd_hook", "urbandictionnary")
@hook.command("urbandictionnary")
def udsearch(msg):
if not len(msg.args):
raise IMException("Indicate a term to search")