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/commands/cmd_notice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/cmd_notice.cpp') diff --git a/src/commands/cmd_notice.cpp b/src/commands/cmd_notice.cpp index b060a534f..d5ef7ba1d 100644 --- a/src/commands/cmd_notice.cpp +++ b/src/commands/cmd_notice.cpp @@ -189,7 +189,7 @@ CmdResult CommandNotice::Handle (const std::vector& parameters, Use else dest = ServerInstance->FindNick(destnick); - if (dest) + if ((dest) && (dest->registered == REG_ALL)) { if (parameters[1].empty()) { -- cgit v1.2.3