summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-10-10 02:15:40 +0200
committerattilamolnar <attilamolnar@hush.com>2012-10-12 03:46:19 +0200
commit5961493368ec3c83b688afe6229d4efb1bb4d57a (patch)
tree2edc1a78daec376b04566372229bdcd11a834e16 /src/users.cpp
parentba6f7fe42f11374bde035edbc459853725f88737 (diff)
Fix unregistered users getting global notices, also fix certain commands working on unregistered users, spotted by @Adam-
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index eeb80ccc9..cce5c4514 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1520,7 +1520,8 @@ void User::SendAll(const char* command, const char* text, ...)
for (std::vector<LocalUser*>::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++)
{
- (*i)->Write(fmt);
+ if ((*i)->registered == REG_ALL)
+ (*i)->Write(fmt);
}
}