Fix problem with trying to pass non-text to msg(text=...). Resolves #996.
This commit is contained in:
parent
5353b6617d
commit
8fe631d808
3 changed files with 5 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ from evennia.commands.cmdsethandler import CmdSetHandler
|
|||
from evennia.commands import cmdhandler
|
||||
from evennia.utils import logger
|
||||
from evennia.utils.utils import (variable_from_module, lazy_property,
|
||||
make_iter, to_unicode)
|
||||
make_iter, to_unicode, to_str)
|
||||
|
||||
_MULTISESSION_MODE = settings.MULTISESSION_MODE
|
||||
|
||||
|
|
@ -501,6 +501,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
|||
except Exception:
|
||||
logger.log_trace()
|
||||
|
||||
text = text if text is None else to_str(text, force_string=True)
|
||||
kwargs["options"] = options
|
||||
|
||||
# relay to session(s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue