summaryrefslogtreecommitdiff
path: root/modules/operserv
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-10-09 22:04:32 -0400
committerAdam <Adam@anope.org>2016-10-09 22:04:32 -0400
commitd22b68b7f747578477163c307f6af3914f05f43e (patch)
tree0335f243372c4917b82d40b2634a7799e2a9413a /modules/operserv
parentcfbbcf32164c6011c80d2a3eed78f1db48c9903b (diff)
Adjust reading chanserv core config opts
Diffstat (limited to 'modules/operserv')
-rw-r--r--modules/operserv/forbid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/operserv/forbid.cpp b/modules/operserv/forbid.cpp
index 84f5d3a93..e706083e0 100644
--- a/modules/operserv/forbid.cpp
+++ b/modules/operserv/forbid.cpp
@@ -317,7 +317,7 @@ class CommandOSForbid : public Command
ServiceBot *OperServ = Config->GetClient("OperServ");
if (IRCD->CanSQLineChannel && OperServ)
{
- time_t inhabit = Config->GetModule("chanserv")->Get<time_t>("inhabit", "15s");
+ time_t inhabit = Config->GetModule("chanserv/main")->Get<time_t>("inhabit", "15s");
#warning "xline allocated on stack"
#if 0
XLine x(c->name, OperServ->nick, Anope::CurTime + inhabit, d->GetReason());
@@ -512,7 +512,7 @@ class OSForbid : public Module
{
if (IRCD->CanSQLineChannel)
{
- time_t inhabit = Config->GetModule("chanserv")->Get<time_t>("inhabit", "15s");
+ time_t inhabit = Config->GetModule("chanserv/main")->Get<time_t>("inhabit", "15s");
#warning "xline allocated on stack"
#if 0
XLine x(c->name, OperServ->nick, Anope::CurTime + inhabit, d->GetReason());