Fix narrow/utf8 difference in incoming/outcoming messages

master
number Zero 2018-06-09 17:31:35 +03:00 committed by sfan5
parent 0b23253447
commit 2c0d8b25dd
1 changed files with 2 additions and 2 deletions

View File

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