From 99be179284329fd7cb7c3d9e21a9fe93fed2637e Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 1 Mar 2006 14:58:14 +0000 Subject: Dont allow +J 0 or +J < 0 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3396 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_kicknorejoin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules') 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; } -- cgit v1.2.3