forked from Mirrorlandia_minetest/minetest
Fix narrow/utf8 difference in incoming/outcoming messages
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user