summaryrefslogtreecommitdiff
path: root/modules/commands/ns_suspend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/ns_suspend.cpp')
-rw-r--r--modules/commands/ns_suspend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/ns_suspend.cpp b/modules/commands/ns_suspend.cpp
index fc445a1dc..0d801ab7d 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;