From 64b3ed7211734e17c75f999e63fea739a99268da Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 1 Mar 2006 15:03:29 +0000 Subject: Allow removal of mode with new check git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3397 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_kicknorejoin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_kicknorejoin.cpp b/src/modules/m_kicknorejoin.cpp index 6638dc5bb..2387abb3e 100644 --- a/src/modules/m_kicknorejoin.cpp +++ b/src/modules/m_kicknorejoin.cpp @@ -51,7 +51,7 @@ public: } } /* Don't allow negative or 0 +J value */ - return (atoi(params[0].c_str()) > 0); + return ((!mode_on) || (atoi(params[0].c_str()) > 0)); } return 0; } -- cgit v1.2.3