move on to command.regex if a given command isn't found

This commit is contained in:
jesopo 2019-11-06 13:05:41 +00:00
parent fa28e4e7b2
commit 5dc1ea3ffa

View file

@ -283,10 +283,9 @@ class Module(ModuleManager.BaseModule):
command = event["message_split"][1].lower() command = event["message_split"][1].lower()
args_split = event["message_split"][2:] args_split = event["message_split"][2:]
if command:
if event["action"]:
return
hook = None
if command:
try: try:
hook, command, args_split = self._find_command_hook( hook, command, args_split = self._find_command_hook(
event["server"], command, True, args_split) event["server"], command, True, args_split)
@ -296,6 +295,10 @@ class Module(ModuleManager.BaseModule):
event["user"].nickname) event["user"].nickname)
return return
if hook:
if event["action"]:
return
if hook: if hook:
self.command(event["server"], event["channel"], self.command(event["server"], event["channel"],
event["target_str"], True, event["user"], command, event["target_str"], True, event["user"], command,