aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornumber Zero <silverunicorn2011@yandex.ru>2018-06-09 17:31:35 +0300
committersfan5 <sfan5@live.de>2018-06-10 17:18:11 +0200
commit24a2fd4dc4918038fb587cfebe00f02fef03a347 (patch)
tree1035a341a7ea8e2a99e38e2f8dcdf1b49c447b13 /src
parent2515207606683d60a6657c7ea18189381dae157c (diff)
downloadminetest-24a2fd4dc4918038fb587cfebe00f02fef03a347.tar.gz
minetest-24a2fd4dc4918038fb587cfebe00f02fef03a347.tar.bz2
minetest-24a2fd4dc4918038fb587cfebe00f02fef03a347.zip
Fix narrow/utf8 difference in incoming/outcoming messages
Diffstat (limited to 'src')
-rw-r--r--src/script/lua_api/l_server.cpp4
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;
}