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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user