summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_dccallow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp
index 6649b81db..2ee79e296 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -149,11 +149,11 @@ class cmd_dccallow : public command_t
std::string default_length = Conf->ReadValue("dccallow", "length", 0).c_str();
long length;
- if (pcnt == 1 || ServerInstance->Duration(parameters[1]) < 1)
+ if (pcnt == 1)
{
length = ServerInstance->Duration(default_length.c_str());
}
- else if (parameters[1] == 0)
+ else if (!atoi(parameters[1]))
{
length = 0;
}