Rework hook managment and add some tests
This commit is contained in:
parent
926648517f
commit
43c42e1397
8 changed files with 222 additions and 78 deletions
|
|
@ -242,7 +242,7 @@ def cmd_unalias(msg):
|
|||
|
||||
## Alias replacement
|
||||
|
||||
@hook.add("pre_Command")
|
||||
@hook.add(["pre","Command"])
|
||||
def treat_alias(msg):
|
||||
if msg.cmd in context.data.getNode("aliases").index:
|
||||
txt = context.data.getNode("aliases").index[msg.cmd]["origin"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue