don't have [''] as args_split when there's no args (for alias)
This commit is contained in:
parent
3c77793490
commit
b0a71f8bb2
1 changed files with 6 additions and 2 deletions
|
@ -59,9 +59,13 @@ class Module(ModuleManager.BaseModule):
|
||||||
event["command"].command)
|
event["command"].command)
|
||||||
if not alias == None:
|
if not alias == None:
|
||||||
alias, alias_args = alias
|
alias, alias_args = alias
|
||||||
|
|
||||||
|
given_args = []
|
||||||
|
if event["command"].args:
|
||||||
|
given_args = event["command"].args.split(" ")
|
||||||
|
|
||||||
event["command"].command = alias
|
event["command"].command = alias
|
||||||
event["command"].args = self._arg_replace(alias_args,
|
event["command"].args = self._arg_replace(alias_args, given_args,
|
||||||
event["command"].args.split(" "),
|
|
||||||
{"NICK": event["user"].nickname})
|
{"NICK": event["user"].nickname})
|
||||||
|
|
||||||
@utils.hook("received.command.alias")
|
@utils.hook("received.command.alias")
|
||||||
|
|
Loading…
Reference in a new issue