mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Remove "Server -!- " prefix from player messages
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user