diff options
author | Adam <Adam@anope.org> | 2016-10-09 22:05:13 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-09 22:05:13 -0400 |
commit | 83b8e655306fd88fa130aea84f91d017edbedc24 (patch) | |
tree | e867e5d8aa0eaf62d89468cc3451aecffddcb87e /modules/operserv/chankill.cpp | |
parent | 70c4659fe5fa7e63352a6c7a1e7a048c4353a33b (diff) |
Adjust reading operserv core config opts
Diffstat (limited to 'modules/operserv/chankill.cpp')
-rw-r--r-- | modules/operserv/chankill.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/operserv/chankill.cpp b/modules/operserv/chankill.cpp index 9ab820821..674200c84 100644 --- a/modules/operserv/chankill.cpp +++ b/modules/operserv/chankill.cpp @@ -48,7 +48,7 @@ class CommandOSChanKill : public Command last_param = 2; } - time_t expires = !expiry.empty() ? Anope::DoTime(expiry) : Config->GetModule("operserv")->Get<time_t>("autokillexpiry", "30d"); + time_t expires = !expiry.empty() ? Anope::DoTime(expiry) : Config->GetModule("operserv/main")->Get<time_t>("autokillexpiry", "30d"); if (!expiry.empty() && isdigit(expiry[expiry.length() - 1])) expires *= 86400; @@ -74,7 +74,7 @@ class CommandOSChanKill : public Command reason += params[last_param + 1]; Anope::string realreason; - if (Config->GetModule("operserv")->Get<bool>("addakiller") && !source.GetNick().empty()) + if (Config->GetModule("operserv/main")->Get<bool>("addakiller") && !source.GetNick().empty()) realreason = "[" + source.GetNick() + "] " + reason; else realreason = reason; |