From 5961493368ec3c83b688afe6229d4efb1bb4d57a Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 10 Oct 2012 02:15:40 +0200 Subject: Fix unregistered users getting global notices, also fix certain commands working on unregistered users, spotted by @Adam- --- src/users.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/users.cpp') 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::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); } } -- cgit v1.2.3