Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix narrow string compiling issue on MSVC2010
  • Loading branch information
SmallJoker authored and sfan5 committed Oct 6, 2016
1 parent 667975f commit b66a5d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server.cpp
Expand Up @@ -2757,7 +2757,7 @@ std::wstring Server::handleChat(const std::string &name, const std::wstring &wna
std::wstringstream ws;
ws << L"You cannot send more messages. You are limited to "
<< g_settings->getFloat("chat_message_limit_per_10sec")
<< " messages per 10 seconds.";
<< L" messages per 10 seconds.";
return ws.str();
}
case RPLAYER_CHATRESULT_KICK:
Expand All @@ -2770,7 +2770,7 @@ std::wstring Server::handleChat(const std::string &name, const std::wstring &wna

if (m_max_chatmessage_length > 0 && wmessage.length() > m_max_chatmessage_length) {
return L"Your message exceed the maximum chat message limit set on the server. "
"It was refused. Send a shorter message";
L"It was refused. Send a shorter message";
}

// Commands are implemented in Lua, so only catch invalid
Expand Down

1 comment on commit b66a5d2

@nerzhul
Copy link
Member

@nerzhul nerzhul commented on b66a5d2 Oct 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MSVC 2010 is stupid :)

Please sign in to comment.