diff options
Diffstat (limited to 'modules/commands/cs_suspend.cpp')
-rw-r--r-- | modules/commands/cs_suspend.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/modules/commands/cs_suspend.cpp b/modules/commands/cs_suspend.cpp index 4927737f6..a26cbacd5 100644 --- a/modules/commands/cs_suspend.cpp +++ b/modules/commands/cs_suspend.cpp @@ -27,8 +27,7 @@ class CommandCSSuspend : public Command const Anope::string &chan = params[0]; Anope::string expiry = params.size() > 1 ? params[1] : ""; Anope::string reason = params.size() > 2 ? params[2] : ""; - time_t expiry_secs = Config->CSSuspendExpire; - + time_t expiry_secs = Config->GetModule(this->owner)->Get<time_t>("expire"); if (!expiry.empty() && expiry[0] != '+') { @@ -39,12 +38,6 @@ class CommandCSSuspend : public Command else expiry_secs = Anope::DoTime(expiry); - if (Config->ForceForbidReason && reason.empty()) - { - this->OnSyntaxError(source, ""); - return; - } - if (Anope::ReadOnly) source.Reply(READ_ONLY_MODE); @@ -172,6 +165,8 @@ class CSSuspend : public Module ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); } + // cs info output? + void OnPreChanExpire(ChannelInfo *ci, bool &expire) anope_override { if (!ci->HasExt("SUSPENDED")) |