Resolved error with pending buddy messages

Attempting to pass mutable type was throwing exception - prevented accounts from logging in
This commit is contained in:
barronwaffles 2017-09-10 20:29:18 +12:00
parent 7b0f6a9952
commit b4e6a72eb4

View File

@ -787,9 +787,9 @@ class PlayerSession(LineReceiver):
for message in messages:
if message['sourceid'] not in self.blocked:
try:
self.transport.write(bytearray(message['msg']))
self.transport.write(bytes(message['msg']))
except:
self.transport.write(bytearray(message['msg'], "utf-8"))
self.transport.write(bytes(message['msg'], "utf-8"))
if __name__ == "__main__":