diff options
Diffstat (limited to 'src/modules/m_kicknorejoin.cpp')
-rw-r--r-- | src/modules/m_kicknorejoin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_kicknorejoin.cpp b/src/modules/m_kicknorejoin.cpp index e134ee317..6638dc5bb 100644 --- a/src/modules/m_kicknorejoin.cpp +++ b/src/modules/m_kicknorejoin.cpp @@ -50,7 +50,8 @@ public: c->Shrink("norejoinusers"); } } - return 1; + /* Don't allow negative or 0 +J value */ + return (atoi(params[0].c_str()) > 0); } return 0; } |