diff options
author | number Zero <silverunicorn2011@yandex.ru> | 2018-06-09 17:31:35 +0300 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2018-06-10 10:33:53 +0200 |
commit | 2c0d8b25dd9a2e167bcf884c07ac4369f884091e (patch) | |
tree | a69634a91fbae591aa6bdd8396e6b64f47390c50 | |
parent | 0b23253447623cadf1c394984ce0eee977d54b9b (diff) | |
download | minetest-2c0d8b25dd9a2e167bcf884c07ac4369f884091e.tar.gz minetest-2c0d8b25dd9a2e167bcf884c07ac4369f884091e.tar.bz2 minetest-2c0d8b25dd9a2e167bcf884c07ac4369f884091e.zip |
Fix narrow/utf8 difference in incoming/outcoming messages
-rw-r--r-- | src/script/lua_api/l_server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/lua_api/l_server.cpp b/src/script/lua_api/l_server.cpp index 05d2a3349..7eba79565 100644 --- a/src/script/lua_api/l_server.cpp +++ b/src/script/lua_api/l_server.cpp @@ -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; } |