diff orpg/networking/mplay_server_gui.py @ 58:27e58b0483e7 traipse_dev

Fixed major bug that caused an error to spit out in Windows platforms. Added /tmp/tmp.txt placeholder to ensure the /tmp/ folder is there. removed more print statements.
author sirebral
date Sat, 08 Aug 2009 00:25:33 -0500
parents 9014d7861bb3
children c54768cffbd4
line wrap: on
line diff
--- a/orpg/networking/mplay_server_gui.py	Fri Aug 07 23:21:37 2009 -0500
+++ b/orpg/networking/mplay_server_gui.py	Sat Aug 08 00:25:33 2009 -0500
@@ -224,7 +224,7 @@
     def updateRoom( self, data ):
         (room, room_id, player) = data
         i = self.FindItemData( -1, int(player) )
-        self.SetStringItem( i, 3, room )
+        if i > 0: self.SetStringItem( i, 3, room )
         self.AutoAjust()
 
     def setPlayerRole( self, id, role ):
@@ -275,8 +275,7 @@
             elif menuItem == MENU_PLAYER_SEND_ROOM_MESSAGE:
                 print "Send message to room..."
                 msg = self.GetMessageInput( "Send message to room of this player")
-                if len(msg):
-                    self.main.server.server.send_to_group("0", str(groupID), msg )
+                if len(msg): self.main.server.server.send_to_group('0', str(groupID), msg )
 
             elif menuItem == MENU_PLAYER_SEND_SERVER_MESSAGE:
                 print "broadcast a message..."