diff options
author | Robby- <robby@chat.be> | 2013-12-29 05:27:36 +0100 |
---|---|---|
committer | Robby- <robby@chat.be> | 2013-12-29 05:27:36 +0100 |
commit | c519119197a7883b788fb1c89bcab0685868d92c (patch) | |
tree | ec0b144c8ed345b66233488e071e07881c2c3a15 /modules | |
parent | 780bc7ca1479a334a1bea59db3ffd89da1a87800 (diff) |
Don't expire ignores when NoExpire is enabled.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/commands/os_ignore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/os_ignore.cpp b/modules/commands/os_ignore.cpp index 07d05bd36..c42165700 100644 --- a/modules/commands/os_ignore.cpp +++ b/modules/commands/os_ignore.cpp @@ -103,7 +103,7 @@ class OSIgnoreService : public IgnoreService { IgnoreData &id = *ign; - if (id.time && id.time <= Anope::CurTime) + if (id.time && !Anope::NoExpire && id.time <= Anope::CurTime) { Log(LOG_NORMAL, "expire/ignore", Config->GetClient("OperServ")) << "Expiring ignore entry " << id.mask; this->ignores.erase(ign); @@ -210,7 +210,7 @@ class CommandOSIgnore : public Command next_it = it; ++next_it; - if (id.time && id.time <= Anope::CurTime) + if (id.time && !Anope::NoExpire && id.time <= Anope::CurTime) { Log(LOG_NORMAL, "expire/ignore", Config->GetClient("OperServ")) << "Expiring ignore entry " << id.mask; ignores.erase(it); |