summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 18:05:39 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 18:05:39 +0000
commit034368624cbe5923a1df069825fe1e65fbf00895 (patch)
treeb7c3da44f806e395154cc9bc41c1b1e7d713caa2 /src
parentde4a3f44b95620c1e220668517f5025039f07877 (diff)
Tidy up invalid numbers passed to this function
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4240 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_kicknorejoin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/m_kicknorejoin.cpp b/src/modules/m_kicknorejoin.cpp
index 1c5333def..e96e42185 100644
--- a/src/modules/m_kicknorejoin.cpp
+++ b/src/modules/m_kicknorejoin.cpp
@@ -40,6 +40,7 @@ class KickRejoin : public ModeHandler
}
if ((!adding) || (atoi(parameter.c_str()) > 0))
{
+ parameter = ConvToStr(atoi(parameter.c_str()));
channel->SetModeParam('J', parameter.c_str(), adding);
channel->SetMode('J', adding);
return MODEACTION_ALLOW;