aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_dccallow.cpp
diff options
context:
space:
mode:
authorGravatar w00t2008-03-28 09:50:04 +0000
committerGravatar w00t2008-03-28 09:50:04 +0000
commit7687d93b06530c3402a6acfba256eed652e1e53e (patch)
treee88e0a9672893e9694384608490f830e9c276773 /src/modules/m_dccallow.cpp
parentRicer up AllModulesReportReady further. If one fails, all fail, so returning ... (diff)
Don't expire allows with length 0, they are permanent for the session (thx praetorian)
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9195 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_dccallow.cpp')
-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 60aa04270..b12824cc9 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -383,7 +383,7 @@ class ModuleDCCAllow : public Module
dccallowlist::iterator iter = dl->begin();
while (iter != dl->end())
{
- if ((iter->set_on + iter->length) <= ServerInstance->Time())
+ if (iter->length != 0 && (iter->set_on + iter->length) <= ServerInstance->Time())
{
u->WriteServ("997 %s %s :DCCALLOW entry for %s has expired", u->nick, u->nick, iter->nickname.c_str());
iter = dl->erase(iter);