Ticket #3549: no-save-lobby-ips.diff
File no-save-lobby-ips.diff, 1.1 KB (added by , 9 years ago) |
---|
-
binaries/data/mods/public/gui/gamesetup/gamesetup_mp.js
226 226 227 227 function startJoin(playername, ip) 228 228 { 229 // Save player name and host address230 Engine.ConfigDB_CreateValue("user", "playername", playername);231 Engine.ConfigDB_CreateValue("user", "multiplayerserver", ip);232 Engine.ConfigDB_WriteFile("user", "config/user.cfg");233 234 229 try 235 230 { 236 231 if (g_userRating) … … 248 243 } 249 244 250 245 startConnectionStatus("client"); 251 // Set player lobby presence 246 252 247 if (Engine.HasXmppClient()) 248 // Set player lobby presence 253 249 Engine.LobbySetPlayerPresence("playing"); 250 else { 251 // Only save the player name and host address if they're valid and we're not in the lobby 252 Engine.ConfigDB_CreateValue("user", "playername", playername); 253 Engine.ConfigDB_CreateValue("user", "multiplayerserver", ip); 254 Engine.ConfigDB_WriteFile("user", "config/user.cfg"); 255 } 254 256 return true; 255 257 } 256 258