Fix narrow/utf8 difference in incoming/outcoming messages

This commit is contained in:
number Zero 2018-06-09 17:31:35 +03:00 committed by sfan5
parent 2515207606
commit 24a2fd4dc4

@ -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;
}