From 1a8bbd600498d6ac00906e130950d75e6ccd3148 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 12 Mar 2024 14:34:34 +0000 Subject: Respect --noexpire in cs_suspend and ns_suspend. --- modules/commands/cs_suspend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/cs_suspend.cpp') diff --git a/modules/commands/cs_suspend.cpp b/modules/commands/cs_suspend.cpp index ae050e1c6..c9274c059 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; -- cgit