]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Allow remote users to bypass Q:Line (why on earth wasn't this the case)
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 8 Apr 2008 22:55:37 +0000 (22:55 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 8 Apr 2008 22:55:37 +0000 (22:55 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9436 e03df62e-2008-0410-955e-edbf42e46eb7

src/commands/cmd_nick.cpp

index 88265f2a4f1b75cb62c277225f8467c46776f03e..059a978060e06f9cc7f6deb61626637e5cd69db8 100644 (file)
@@ -64,8 +64,11 @@ CmdResult CommandNick::Handle (const char* const* parameters, int, User *user)
                 * Don't check Q:Lines if it's a server-enforced change, just on the off-chance some fucking *moron*
                 * tries to Q:Line SIDs, also, this means we just get our way period, as it really should be.
                 * Thanks Kein for finding this. -- w00t
+                *
+                * Also don't check Q:Lines for remote nickchanges, they should have our Q:Lines anyway to enforce themselves.
+                *              -- w00t
                 */
-               if (!allowinvalid)
+               if (!allowinvalid || !IS_LOCAL(user))
                {
                        XLine* mq = ServerInstance->XLines->MatchesLine("Q",parameters[0]);
                        if (mq)