Permalink
Browse files

Fix narrow/utf8 difference in incoming/outcoming messages

  • Loading branch information...
numberZero authored and sfan5 committed Jun 9, 2018
1 parent 0b23253 commit 2c0d8b25dd9a2e167bcf884c07ac4369f884091e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/script/lua_api/l_server.cpp
@@ -74,7 +74,7 @@ int ModApiServer::l_chat_send_all(lua_State *L)
// Get server from registry
Server *server = getServer(L);
// Send
server->notifyPlayers(narrow_to_wide(text));
server->notifyPlayers(utf8_to_wide(text));
return 0;
}

@@ -88,7 +88,7 @@ int ModApiServer::l_chat_send_player(lua_State *L)
// Get server from registry
Server *server = getServer(L);
// Send
server->notifyPlayer(name, narrow_to_wide(text));
server->notifyPlayer(name, utf8_to_wide(text));
return 0;
}

0 comments on commit 2c0d8b2

Please sign in to comment.