diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-01 14:58:14 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-01 14:58:14 +0000 |
commit | 99be179284329fd7cb7c3d9e21a9fe93fed2637e (patch) | |
tree | d8e674bff9fb1c4434a7c6c96234e6685da0a889 /src | |
parent | 185cf48303e6f6760b7d1d1b0f037930b7e994b3 (diff) |
Dont allow +J 0 or +J < 0
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3396 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_kicknorejoin.cpp | 3 | ||||
-rwxr-xr-x | src/svn-rev.sh | 2 |
2 files changed, 3 insertions, 2 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; } diff --git a/src/svn-rev.sh b/src/svn-rev.sh index 5c6d9e567..30eb7e104 100755 --- a/src/svn-rev.sh +++ b/src/svn-rev.sh @@ -1 +1 @@ -echo 3393 +echo 3395 |