]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Only announce Q:Line hits on NICK from unregistered users, thanks satmd.
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 22 Oct 2008 10:13:08 +0000 (10:13 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 22 Oct 2008 10:13:08 +0000 (10:13 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10685 e03df62e-2008-0410-955e-edbf42e46eb7

src/commands/cmd_nick.cpp

index 0e24037528a6f2730d59ee36b4200f0de63a1587..25b2868ec318168015a09cd203dd2fe89fd7f0bb 100644 (file)
@@ -96,7 +96,10 @@ CmdResult CommandNick::Handle (const std::vector<std::string>& parameters, User
                        XLine* mq = ServerInstance->XLines->MatchesLine("Q",parameters[0]);
                        if (mq)
                        {
-                               ServerInstance->SNO->WriteToSnoMask('x', "Q-Lined nickname %s from %s!%s@%s: %s", parameters[0].c_str(), user->nick.c_str(), user->ident.c_str(), user->host.c_str(), mq->reason);
+                               if (user->registered == REG_ALL)
+                               {
+                                       ServerInstance->SNO->WriteToSnoMask('x', "Q-Lined nickname %s from %s!%s@%s: %s", parameters[0].c_str(), user->nick.c_str(), user->ident.c_str(), user->host.c_str(), mq->reason);
+                               }
                                user->WriteNumeric(432, "%s %s :Invalid nickname: %s",user->nick.c_str(), parameters[0].c_str(), mq->reason);
                                return CMD_FAILURE;
                        }