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