Fixed kicking players with spaces in their names through the new admin interface.
This commit is contained in:
@@ -106,8 +106,9 @@ ServerAcceptThread::SignalIrcChatMsg(const std::string &nickName, const std::str
|
||||
msgStream >> command;
|
||||
if (command == "kick")
|
||||
{
|
||||
string playerName;
|
||||
msgStream >> playerName;
|
||||
while (msgStream.peek() == ' ')
|
||||
msgStream.get();
|
||||
string playerName(msgStream.str().substr(msgStream.tellg()));
|
||||
if (!playerName.empty())
|
||||
{
|
||||
if (GetLobbyThread().KickPlayerByName(playerName))
|
||||
|
||||
Reference in New Issue
Block a user