From 26bde9388d2d11085a0da1d9ee2fad5e36fb9366 Mon Sep 17 00:00:00 2001 From: lotodore Date: Fri, 16 Nov 2007 01:30:07 +0000 Subject: [PATCH] Fixed kicking players with spaces in their names through the new admin interface. --- src/net/common/serveracceptthread.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net/common/serveracceptthread.cpp b/src/net/common/serveracceptthread.cpp index 9ee9e06d..20bb2f36 100644 --- a/src/net/common/serveracceptthread.cpp +++ b/src/net/common/serveracceptthread.cpp @@ -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))