diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-08 22:55:37 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-08 22:55:37 +0000 |
commit | 149ed936a85e5483f8fd99060ab1acbc4d360ba9 (patch) | |
tree | 2b9f43b665b6dca9c7e4615a31761de8adb1003c /src | |
parent | 927f436c1c2f26e4a44f9f86f044e5e742981ffe (diff) |
Allow remote users to bypass Q:Line (why on earth wasn't this the case)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9436 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/cmd_nick.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commands/cmd_nick.cpp b/src/commands/cmd_nick.cpp index 88265f2a4..059a97806 100644 --- a/src/commands/cmd_nick.cpp +++ b/src/commands/cmd_nick.cpp @@ -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) |