Mercurial > traipse_dev
diff orpg/networking/mplay_server.py @ 57:9014d7861bb3 traipse_dev
Removed some extra print messages from the server. Cleaned up the Manifest
that was causing problems on linux. Might have been an errouneous push.
Testing on WinXP
author | sirebral |
---|---|
date | Fri, 07 Aug 2009 23:21:37 -0500 |
parents | c7f04d3c76f5 |
children | 27e58b0483e7 |
line wrap: on
line diff
--- a/orpg/networking/mplay_server.py Fri Aug 07 21:53:14 2009 -0500 +++ b/orpg/networking/mplay_server.py Fri Aug 07 23:21:37 2009 -0500 @@ -2408,17 +2408,15 @@ self.log_msg("Exception: send_to_all(): " + str(e)) def send_to_group(self, from_id, group_id, data): - msg = ("<msg to='all' from='0' group_id='"+group_id+"'><font color='#FF0000'>" + data + "</font>") - #data = ServerPlugins.postParseIncoming(data) + data = ("<msg to='all' from='0' group_id='"+group_id+"'><font color='#FF0000'>" + data + "</font>") + data = ServerPlugins.postParseIncoming(data) try: - print data self.p_lock.acquire() keys = self.groups[group_id].get_player_ids() self.p_lock.release() - print keys for k in keys: if k != from_id: - self.players[k].outbox.put(msg) + self.players[k].outbox.put(data) except Exception, e: traceback.print_exc() self.log_msg("Exception: send_to_group(): " + str(e))