diff options
author | number Zero <silverunicorn2011@yandex.ru> | 2018-06-09 17:31:35 +0300 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2018-06-10 17:18:11 +0200 |
commit | 24a2fd4dc4918038fb587cfebe00f02fef03a347 (patch) | |
tree | 1035a341a7ea8e2a99e38e2f8dcdf1b49c447b13 | |
parent | 2515207606683d60a6657c7ea18189381dae157c (diff) | |
download | minetest-24a2fd4dc4918038fb587cfebe00f02fef03a347.tar.gz minetest-24a2fd4dc4918038fb587cfebe00f02fef03a347.tar.bz2 minetest-24a2fd4dc4918038fb587cfebe00f02fef03a347.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 a0e475dec..bb1d75221 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; } |