diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-16 13:33:33 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-16 13:33:33 +0000 |
commit | 2352b3a3ef955a1cba8646733c43c8eaf6936187 (patch) | |
tree | 7ef46ce9c1b8ae959be3ea4bb6dd129db24b40ff /src/modules | |
parent | afb3aed2aef8f62580300f2ecd1986dca595282e (diff) |
Make parameter count checks more readable
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5481 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_dccallow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); } |