summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-01 13:04:52 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-01 13:04:52 +0000
commit46c4fd72f78cb9973a9d940b01790fcdbd3b5f54 (patch)
tree03048f623fa7f34c1e17ba0f89565ed0618ba77c /src/modules
parent7b78e73fdbd38c0aa1f711d95a3026652a05ca8b (diff)
Excempt ops kicking themselves from +J
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3004 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_kicknorejoin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_kicknorejoin.cpp b/src/modules/m_kicknorejoin.cpp
index 05beaaa5b..dab129cb2 100644
--- a/src/modules/m_kicknorejoin.cpp
+++ b/src/modules/m_kicknorejoin.cpp
@@ -104,7 +104,7 @@ public:
virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason)
{
- if(chan->IsCustomModeSet('J'))
+ if(chan->IsCustomModeSet('J') && (source != user))
{
delaylist* dl = (delaylist*)chan->GetExt("norejoinusers");