From c519119197a7883b788fb1c89bcab0685868d92c Mon Sep 17 00:00:00 2001 From: Robby- Date: Sun, 29 Dec 2013 05:27:36 +0100 Subject: Don't expire ignores when NoExpire is enabled. --- modules/commands/os_ignore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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); -- cgit