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:
6a3fa9d
)
Add additional check to avoid broadcasting private messages in error conditions
author
sapier
<Sapier at GMX dot net>
Sun, 2 Feb 2014 00:55:24 +0000
(
01:55
+0100)
committer
sapier
<Sapier at GMX dot net>
Sun, 2 Feb 2014 00:55:24 +0000
(
01:55
+0100)
src/server.cpp
patch
|
blob
|
history
diff --git
a/src/server.cpp
b/src/server.cpp
index 5b799eb2cd99f8b7c7b98614d241759075f1cc47..5dde78e60530ec339767f3c81b28131d5285ae63 100644
(file)
--- a/
src/server.cpp
+++ b/
src/server.cpp
@@
-4385,6
+4385,10
@@
void Server::notifyPlayer(const char *name, const std::wstring msg, const bool p
Player *player = m_env->getPlayer(name);
if(!player)
return;
+
+ if (player->peer_id == PEER_ID_INEXISTENT)
+ return;
+
if (prepend)
SendChatMessage(player->peer_id, std::wstring(L"Server -!- ")+msg);
else