Fixed kicking players with spaces in their names through the new admin interface.

This commit is contained in:
lotodore
2007-11-16 01:30:07 +00:00
parent 09d8156089
commit 26bde9388d
+3 -2
View File
@@ -106,8 +106,9 @@ ServerAcceptThread::SignalIrcChatMsg(const std::string &nickName, const std::str
msgStream >> command; msgStream >> command;
if (command == "kick") if (command == "kick")
{ {
string playerName; while (msgStream.peek() == ' ')
msgStream >> playerName; msgStream.get();
string playerName(msgStream.str().substr(msgStream.tellg()));
if (!playerName.empty()) if (!playerName.empty())
{ {
if (GetLobbyThread().KickPlayerByName(playerName)) if (GetLobbyThread().KickPlayerByName(playerName))