Revert "Fix problem with trying to pass non-text to msg(text=...). Resolves #996."

This reverts commit 8fe631d808.
This commit is contained in:
Griatch 2016-06-15 19:54:47 +02:00
parent 8fe631d808
commit 15036e8069
3 changed files with 3 additions and 5 deletions

View file

@ -16,7 +16,7 @@ from django.utils import timezone
from django.conf import settings
from evennia.comms.models import ChannelDB
from evennia.utils import logger
from evennia.utils.utils import make_iter, lazy_property, to_str
from evennia.utils.utils import make_iter, lazy_property
from evennia.commands.cmdsethandler import CmdSetHandler
from evennia.server.session import Session
@ -392,7 +392,7 @@ class ServerSession(Session):
# that auto-adds the session, we'd get a kwarg collision.
kwargs.pop("session", None)
if text is not None:
self.data_out(text=to_str(text, force_string=True), **kwargs)
self.data_out(text=text, **kwargs)
else:
self.data_out(**kwargs)