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 0b23253447
commit 2c0d8b25dd

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