1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 11:06:38 +02:00

Respect --noexpire in cs_suspend and ns_suspend.

This commit is contained in:
Sadie Powell
2024-03-12 14:34:34 +00:00
parent e725c880a9
commit 1a8bbd6004
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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;