Refactors hooks registration
This commit is contained in:
parent
49d7e4ced6
commit
f39a0eac56
40 changed files with 202 additions and 168 deletions
|
|
@ -43,7 +43,7 @@ def where(loc):
|
|||
"{adminArea1}".format(**loc)).strip()
|
||||
|
||||
|
||||
@hook("cmd_hook", "geocode")
|
||||
@hook.command("geocode")
|
||||
def cmd_geocode(msg):
|
||||
if not len(msg.args):
|
||||
raise IMException("indicate a name")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue