Fixing ticket #81: Do not show a "you were kicked from the server" message if your username is already present in the lobby. Instead, kick the existing user from the lobby.

This commit is contained in:
lotodore
2011-12-27 17:26:03 +00:00
parent fb5938ef46
commit 0d71521559
2 changed files with 24 additions and 15 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ protected:
GuiInterface &GetGui();
ServerIrcBotCallback &GetIrcBotCallback();
bool IsPlayerConnected(const std::string &name) const;
unsigned GetPlayerId(const std::string &name) const;
static boost::shared_ptr<NetPacket> CreateNetPacketPlayerListNew(unsigned playerId);
static boost::shared_ptr<NetPacket> CreateNetPacketPlayerListLeft(unsigned playerId);