aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-02-24 20:41:40 -0500
committerShadowNinja <shadowninja@minetest.net>2014-02-27 00:00:22 -0500
commit9a3b7715e2c2390a3a549d4e105ed8c18defb228 (patch)
tree5b4708674fbe4f06a3b114bc4f161db6a0fcf373 /src/server.cpp
parent18fd913e696e29fa6a6f65e1399772cd28d9ff83 (diff)
downloadminetest-9a3b7715e2c2390a3a549d4e105ed8c18defb228.tar.gz
minetest-9a3b7715e2c2390a3a549d4e105ed8c18defb228.tar.bz2
minetest-9a3b7715e2c2390a3a549d4e105ed8c18defb228.zip
Remove "Server -!- " prefix from player messages
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 4897df6a9..7eb78f3ef 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -4385,7 +4385,7 @@ std::string Server::getBanDescription(const std::string &ip_or_name)
return m_banmanager->getBanDescription(ip_or_name);
}
-void Server::notifyPlayer(const char *name, const std::wstring msg, const bool prepend = true)
+void Server::notifyPlayer(const char *name, const std::wstring msg)
{
Player *player = m_env->getPlayer(name);
if(!player)
@@ -4394,10 +4394,7 @@ void Server::notifyPlayer(const char *name, const std::wstring msg, const bool p
if (player->peer_id == PEER_ID_INEXISTENT)
return;
- if (prepend)
- SendChatMessage(player->peer_id, std::wstring(L"Server -!- ")+msg);
- else
- SendChatMessage(player->peer_id, msg);
+ SendChatMessage(player->peer_id, msg);
}
bool Server::showFormspec(const char *playername, const std::string &formspec, const std::string &formname)