summaryrefslogtreecommitdiff
path: root/modules/commands/os_ignore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/os_ignore.cpp')
-rw-r--r--modules/commands/os_ignore.cpp4
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);