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