diff options
-rw-r--r-- | modules/commands/cs_suspend.cpp | 4 | ||||
-rw-r--r-- | modules/commands/ns_suspend.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/cs_suspend.cpp b/modules/commands/cs_suspend.cpp index ae050e1..c9274c0 100644 --- a/modules/commands/cs_suspend.cpp +++ b/modules/commands/cs_suspend.cpp @@ -262,7 +262,7 @@ class CSSuspend : public Module expire = false; - if (si->expires && si->expires < Anope::CurTime) + if (!Anope::NoExpire && si->expires && si->expires < Anope::CurTime) { ci->last_used = Anope::CurTime; Expire(ci); @@ -278,7 +278,7 @@ class CSSuspend : public Module if (!si) return EVENT_CONTINUE; - if (si->expires && si->expires < Anope::CurTime) + if (!Anope::NoExpire && si->expires && si->expires < Anope::CurTime) { Expire(c->ci); return EVENT_CONTINUE; diff --git a/modules/commands/ns_suspend.cpp b/modules/commands/ns_suspend.cpp index fc445a1..0d801ab 100644 --- a/modules/commands/ns_suspend.cpp +++ b/modules/commands/ns_suspend.cpp @@ -268,7 +268,7 @@ class NSSuspend : public Module expire = false; - if (s->expires && s->expires < Anope::CurTime) + if (!Anope::NoExpire && s->expires && s->expires < Anope::CurTime) { na->last_seen = Anope::CurTime; Expire(na); @@ -281,7 +281,7 @@ class NSSuspend : public Module if (!s) return EVENT_CONTINUE; - if (s->expires && s->expires < Anope::CurTime) + if (!Anope::NoExpire && s->expires && s->expires < Anope::CurTime) { Expire(na); return EVENT_CONTINUE; |