From 46c4fd72f78cb9973a9d940b01790fcdbd3b5f54 Mon Sep 17 00:00:00 2001 From: om Date: Wed, 1 Feb 2006 13:04:52 +0000 Subject: Excempt ops kicking themselves from +J git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3004 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_kicknorejoin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3