summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}