mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 03:57:17 +02:00
Added handling of django's unicode insistance.
This commit is contained in:
parent
9c3ba7f025
commit
26beacb419
1 changed files with 2 additions and 0 deletions
|
|
@ -167,6 +167,8 @@ class SessionProtocol(StatefulTelnetProtocol):
|
|||
"""
|
||||
Sends a message to the session.
|
||||
"""
|
||||
if isinstance(message, unicode):
|
||||
message = message.encode("utf-8")
|
||||
self.sendLine("%s" % (message,))
|
||||
|
||||
def __str__(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue