mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
don't attempt to msg unset report_to
This commit is contained in:
parent
a38291f1b1
commit
379b856e2a
1 changed files with 6 additions and 5 deletions
|
|
@ -438,11 +438,12 @@ def get_and_merge_cmdsets(
|
|||
cmdset for cmdset in object_cmdsets if cmdset and cmdset.key != "_EMPTY_CMDSET"
|
||||
]
|
||||
# report cmdset errors to user (these should already have been logged)
|
||||
yield [
|
||||
report_to.msg(err_helper(cmdset.errmessage, cmdid=cmdid))
|
||||
for cmdset in cmdsets
|
||||
if cmdset.key == "_CMDSET_ERROR"
|
||||
]
|
||||
if report_to:
|
||||
yield [
|
||||
report_to.msg(err_helper(cmdset.errmessage, cmdid=cmdid))
|
||||
for cmdset in cmdsets
|
||||
if cmdset.key == "_CMDSET_ERROR"
|
||||
]
|
||||
|
||||
if cmdsets:
|
||||
# faster to do tuple on list than to build tuple directly
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue