mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 05:27:17 +02:00
Changed how the cmdset's errmessage is propagated. Adding failing cmdsets added ErrorCmdsets to the cmdhandler. This was for callback reasons, but it clutters up things for no good reason.
This commit is contained in:
parent
47a324f720
commit
92a8e39de5
4 changed files with 8 additions and 6 deletions
|
|
@ -141,7 +141,7 @@ def get_and_merge_cmdsets(caller):
|
|||
# weed out all non-found sets
|
||||
cmdsets = yield [cmdset for cmdset in cmdsets if cmdset and cmdset.key!="Empty"]
|
||||
# report cmdset errors to user (these should already have been logged)
|
||||
yield [caller.msg(cmdset.message) for cmdset in cmdsets if cmdset.key == "_CMDSET_ERROR"]
|
||||
yield [caller.msg(cmdset.errmessage) for cmdset in cmdsets if cmdset.key == "_CMDSET_ERROR"]
|
||||
|
||||
if cmdsets:
|
||||
# we group and merge all same-prio cmdsets separately (this avoids order-dependent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue