alias: fix lookup replacement when empty list
This commit is contained in:
parent
2334bc502a
commit
679f50b730
|
@ -260,7 +260,7 @@ def cmd_unalias(msg):
|
||||||
|
|
||||||
@hook.add(["pre","Command"])
|
@hook.add(["pre","Command"])
|
||||||
def treat_alias(msg):
|
def treat_alias(msg):
|
||||||
if msg.cmd in context.data.getNode("aliases").index:
|
if context.data.getNode("aliases") is not None and msg.cmd in context.data.getNode("aliases").index:
|
||||||
origin = context.data.getNode("aliases").index[msg.cmd]["origin"]
|
origin = context.data.getNode("aliases").index[msg.cmd]["origin"]
|
||||||
rpl_msg = context.subparse(msg, origin)
|
rpl_msg = context.subparse(msg, origin)
|
||||||
if isinstance(rpl_msg, Command):
|
if isinstance(rpl_msg, Command):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user