diff --git a/evennia/accounts/accounts.py b/evennia/accounts/accounts.py index b86b6eb16..ff77eb0b9 100644 --- a/evennia/accounts/accounts.py +++ b/evennia/accounts/accounts.py @@ -421,7 +421,7 @@ class DefaultAccount(with_metaclass(TypeclassBase, AccountDB)): kwargs["options"] = options - if text and not (isinstance(text, basestring) or isinstance(text, tuple)): + if not (isinstance(text, basestring) or isinstance(text, tuple)): # sanitize text before sending across the wire try: text = to_str(text, force_string=True) diff --git a/evennia/objects/objects.py b/evennia/objects/objects.py index 037f3ff01..dfe9dbf6e 100644 --- a/evennia/objects/objects.py +++ b/evennia/objects/objects.py @@ -569,8 +569,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)): except Exception: logger.log_trace() - - if text and not (isinstance(text, basestring) or isinstance(text, tuple)): + if not (isinstance(text, basestring) or isinstance(text, tuple)): # sanitize text before sending across the wire try: text = to_str(text, force_string=True)