From: Digital X. <dig...@us...> - 2007-03-13 23:55:58
|
Update of /cvsroot/openrpg/openrpg1/orpg/networking In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27222/orpg/networking Modified Files: mplay_server.py Log Message: Added the ability to auto register the server via the ini Added the ability to change the Lobby name via the ini Added the ability to set the server name via the ini Index: mplay_server.py =================================================================== RCS file: /cvsroot/openrpg/openrpg1/orpg/networking/mplay_server.py,v retrieving revision 1.138 retrieving revision 1.139 diff -C2 -d -r1.138 -r1.139 *** mplay_server.py 13 Mar 2007 17:43:52 -0000 1.138 --- mplay_server.py 13 Mar 2007 23:55:57 -0000 1.139 *************** *** 385,391 **** boot_pwd = self.configDoc.getAttribute("boot") # Update the lobby with the passwords if they've been specified if len(boot_pwd): ! self.groups = {'0': game_group( '0', 'Lobby', "", 'The game lobby', boot_pwd, "", orpg.dirpath.dir_struct["user"]+'Lobby_map.xml', orpg.dirpath.dir_struct["user"]+'LobbyMessage.html', 1 ) --- 385,402 ---- boot_pwd = self.configDoc.getAttribute("boot") + self.reg = "" + if self.configDoc.hasAttribute("register"): + self.reg = self.configDoc.getAttribute("register") + + LobbyName = 'Lobby' + if self.configDoc.hasAttribute("lobbyname"): + LobbyName = self.configDoc.getAttribute("lobbyname") + + if self.configDoc.hasAttribute("name"): + self.name = self.configDoc.getAttribute("name") + # Update the lobby with the passwords if they've been specified if len(boot_pwd): ! self.groups = {'0': game_group( '0', LobbyName, "", 'The game lobby', boot_pwd, "", orpg.dirpath.dir_struct["user"]+'Lobby_map.xml', orpg.dirpath.dir_struct["user"]+'LobbyMessage.html', 1 ) |