mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 13:07:16 +02:00
Added ability to abort the command chain by returning a true value from cmd.at_pre_cmd().
This commit is contained in:
parent
58f6c05964
commit
545804dffe
2 changed files with 7 additions and 2 deletions
|
|
@ -255,7 +255,9 @@ class Command(object):
|
|||
|
||||
def at_pre_cmd(self):
|
||||
"""
|
||||
This hook is called before self.parse() on all commands
|
||||
This hook is called before self.parse() on all commands.
|
||||
If this hook returns anything but False/None, the command
|
||||
sequence is aborted.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue