Navigation Menu

Skip to content

Commit

Permalink
Don't expire allows with length 0, they are permanent for the session…
Browse files Browse the repository at this point in the history
… (thx praetorian)

git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9195 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
rburchell committed Mar 28, 2008
1 parent 4f9f9fa commit 7687d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/m_dccallow.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 7687d93

Please sign in to comment.