projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2515207
)
Fix narrow/utf8 difference in incoming/outcoming messages
author
number Zero
<silverunicorn2011@yandex.ru>
Sat, 9 Jun 2018 14:31:35 +0000
(17:31 +0300)
committer
sfan5
<sfan5@live.de>
Sun, 10 Jun 2018 15:18:11 +0000
(17:18 +0200)
src/script/lua_api/l_server.cpp
patch
|
blob
|
history
diff --git
a/src/script/lua_api/l_server.cpp
b/src/script/lua_api/l_server.cpp
index a0e475decaa267a50864f60a78aa058498f7be5c..bb1d75221473c48b2bdd581bd1773bcae9772f77 100644
(file)
--- 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;
}