summaryrefslogtreecommitdiff
path: root/modules/commands/os_forbid.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-12-24 20:58:06 -0500
committerAdam <Adam@anope.org>2013-12-24 20:58:06 -0500
commit3029a2db1abe025e9f5b2e1dc60d6b053b29a750 (patch)
tree8e70429c34cbb1f7bb5933b42ecafaf2257bfbb9 /modules/commands/os_forbid.cpp
parent53df61b4c24c7d4374d7a8cd1932068786f319ea (diff)
Don't epxire forbids when noexpire mode is on
Diffstat (limited to 'modules/commands/os_forbid.cpp')
-rw-r--r--modules/commands/os_forbid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/os_forbid.cpp b/modules/commands/os_forbid.cpp
index 9dae12ab6..df3bac6c5 100644
--- a/modules/commands/os_forbid.cpp
+++ b/modules/commands/os_forbid.cpp
@@ -63,7 +63,7 @@ class MyForbidService : public ForbidService
{
ForbidData *d = this->forbids(j).at(i - 1);
- if (d->expires && Anope::CurTime >= d->expires)
+ if (d->expires && !Anope::NoExpire && Anope::CurTime >= d->expires)
{
Anope::string ftype = "none";
if (d->type == FT_NICK)