Skip to content

Commit b66a5d2

Browse files
SmallJokersfan5
authored andcommittedOct 6, 2016
Fix narrow string compiling issue on MSVC2010
1 parent 667975f commit b66a5d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/server.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2757,7 +2757,7 @@ std::wstring Server::handleChat(const std::string &name, const std::wstring &wna
27572757
std::wstringstream ws;
27582758
ws << L"You cannot send more messages. You are limited to "
27592759
<< g_settings->getFloat("chat_message_limit_per_10sec")
2760-
<< " messages per 10 seconds.";
2760+
<< L" messages per 10 seconds.";
27612761
return ws.str();
27622762
}
27632763
case RPLAYER_CHATRESULT_KICK:
@@ -2770,7 +2770,7 @@ std::wstring Server::handleChat(const std::string &name, const std::wstring &wna
27702770

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

27762776
// Commands are implemented in Lua, so only catch invalid

1 commit comments

Comments
 (1)

nerzhul commented on Oct 6, 2016

@nerzhul
Contributor

MSVC 2010 is stupid :)

Please sign in to comment.