summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-01 15:03:29 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-01 15:03:29 +0000
commit64b3ed7211734e17c75f999e63fea739a99268da (patch)
tree8021484ef22421ca1d4c514e87aecd6292f0b977 /src/modules
parent99be179284329fd7cb7c3d9e21a9fe93fed2637e (diff)
Allow removal of mode with new check
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3397 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 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;
}