From 2352b3a3ef955a1cba8646733c43c8eaf6936187 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 16 Oct 2006 13:33:33 +0000 Subject: Make parameter count checks more readable git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5481 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_dccallow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 2ee79e296..13d42c0b9 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -149,7 +149,7 @@ class cmd_dccallow : public command_t std::string default_length = Conf->ReadValue("dccallow", "length", 0).c_str(); long length; - if (pcnt == 1) + if (pcnt < 2) { length = ServerInstance->Duration(default_length.c_str()); } -- cgit v1.2.3