Mercurial > openrpg
changeset 528:5913542070d7 1.8.0
forward compatibility fix for 1.8.1 network messages
author | Digitalxero |
---|---|
date | Mon, 22 Mar 2010 21:34:21 -0600 |
parents | 312272920460 |
children | 21915c68456f |
files | orpg/networking/mplay_client.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/orpg/networking/mplay_client.py Fri Oct 09 10:14:22 2009 -0600 +++ b/orpg/networking/mplay_client.py Mon Mar 22 21:34:21 2010 -0600 @@ -699,8 +699,11 @@ end = data.find(">") head = data[:end+1] msg = data[end+1:] + print data if msg[-6:] == '</msg>': msg = msg[:-6] + if not msg.startswith('<'): + msg = msg.replace('<', '<').replace('>', '>') if id == "0": self.on_receive(msg,None) # None get's interpreted in on_receive as the sys admin.