commit
dc7040fbad
1 changed files with 3 additions and 0 deletions
|
@ -228,6 +228,9 @@ class Module(ModuleManager.BaseModule):
|
||||||
if existing_hook:
|
if existing_hook:
|
||||||
raise utils.EventError("There's already a hook for %s" %
|
raise utils.EventError("There's already a hook for %s" %
|
||||||
hook_name)
|
hook_name)
|
||||||
|
if hook_name == None:
|
||||||
|
command = "%s%s" % (event["command_prefix"], event["command"])
|
||||||
|
raise utils.EventError("Not enough arguments (Usage: %s add <hook>)" % command)
|
||||||
|
|
||||||
all_hooks[hook_name] = {
|
all_hooks[hook_name] = {
|
||||||
"events": DEFAULT_EVENT_CATEGORIES.copy(),
|
"events": DEFAULT_EVENT_CATEGORIES.copy(),
|
||||||
|
|
Loading…
Reference in a new issue