summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-28 09:51:51 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-28 09:51:51 +0000
commitf0bd343e646e7d41dc8a2b157462d13d6e496449 (patch)
tree5a3bc972d102585d26d0bd89b36006d686411887 /src/modules
parent6c99a01008197c59832eb916dad8d6211f00a3e2 (diff)
Forwardport r9195
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9196 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_dccallow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp
index 4bfdf0c9f..1f2b6227a 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -379,7 +379,7 @@ class ModuleDCCAllow : public Module
dccallowlist::iterator iter2 = dl->begin();
while (iter2 != dl->end())
{
- if ((iter2->set_on + iter2->length) <= ServerInstance->Time())
+ if (iter2->length != 0 && (iter2->set_on + iter2->length) <= ServerInstance->Time())
{
u->WriteNumeric(997, "%s %s :DCCALLOW entry for %s has expired", u->nick, u->nick, iter2->nickname.c_str());
iter2 = dl->erase(iter2);