diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-02-24 20:41:40 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-02-27 00:00:22 -0500 |
commit | 9a3b7715e2c2390a3a549d4e105ed8c18defb228 (patch) | |
tree | 5b4708674fbe4f06a3b114bc4f161db6a0fcf373 /src/script/lua_api/l_server.cpp | |
parent | 18fd913e696e29fa6a6f65e1399772cd28d9ff83 (diff) | |
download | minetest-9a3b7715e2c2390a3a549d4e105ed8c18defb228.tar.gz minetest-9a3b7715e2c2390a3a549d4e105ed8c18defb228.tar.bz2 minetest-9a3b7715e2c2390a3a549d4e105ed8c18defb228.zip |
Remove "Server -!- " prefix from player messages
Diffstat (limited to 'src/script/lua_api/l_server.cpp')
-rw-r--r-- | src/script/lua_api/l_server.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/script/lua_api/l_server.cpp b/src/script/lua_api/l_server.cpp index dc05ccbbe..bbf5a707d 100644 --- a/src/script/lua_api/l_server.cpp +++ b/src/script/lua_api/l_server.cpp @@ -52,21 +52,17 @@ int ModApiServer::l_chat_send_all(lua_State *L) return 0; } -// chat_send_player(name, text, prepend) +// chat_send_player(name, text) int ModApiServer::l_chat_send_player(lua_State *L) { NO_MAP_LOCK_REQUIRED; const char *name = luaL_checkstring(L, 1); const char *text = luaL_checkstring(L, 2); - bool prepend = true; - - if (lua_isboolean(L, 3)) - prepend = lua_toboolean(L, 3); // Get server from registry Server *server = getServer(L); // Send - server->notifyPlayer(name, narrow_to_wide(text), prepend); + server->notifyPlayer(name, narrow_to_wide(text)); return 0; } |