aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar danieldg2010-03-06 21:10:40 +0000
committerGravatar danieldg2010-03-06 21:10:40 +0000
commit8839cb72dea24e9a721064d29577d32d76c511ba (patch)
tree0bc2502e22bae29390cab6e8834d7cfc63512b80 /src/modules
parentFix memory leak and possible crash in m_ident, found in 2.0 (diff)
Fix mode +L being visibly reset on every FJOIN
git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@12608 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_redirect.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/m_redirect.cpp b/src/modules/m_redirect.cpp
index f778b5fef..19d5ce3a3 100644
--- a/src/modules/m_redirect.cpp
+++ b/src/modules/m_redirect.cpp
@@ -61,6 +61,8 @@ class Redirect : public ModeHandler
}
}
+ if (channel->GetModeParameter('L') == parameter)
+ return MODEACTION_DENY;
/*
* We used to do some checking for circular +L here, but there is no real need for this any more especially as we
* now catch +L looping in PreJoin. Remove it, since O(n) logic makes me sad, and we catch it anyway. :) -- w00t