mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Remove "Server -!- " prefix from player messages
This commit is contained in:
parent
18fd913e69
commit
9a3b7715e2
5 changed files with 7 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue