mirror of
https://github.com/evennia/evennia.git
synced 2026-04-08 09:24:37 +02:00
Added an abort condition to the cmd's funcparts chain.
This commit is contained in:
parent
0121f36ac0
commit
65e370f93b
1 changed files with 3 additions and 1 deletions
|
|
@ -273,7 +273,9 @@ def cmdhandler(caller, raw_string, testing=False):
|
|||
if hasattr(cmd, "funcparts"):
|
||||
# yield on command parts (for multi-part delayed commands)
|
||||
for funcpart in make_iter(cmd.funcparts):
|
||||
yield funcpart()
|
||||
err = yield funcpart()
|
||||
# returning anything but a deferred/None will kill the chain
|
||||
if err: break
|
||||
|
||||
# post-command hook
|
||||
yield cmd.at_post_cmd()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue