diff options
-rw-r--r-- | modules/commands/ns_group.cpp | 2 | ||||
-rw-r--r-- | modules/commands/ns_register.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_chankill.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_kill.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/ns_group.cpp b/modules/commands/ns_group.cpp index ffb9a4dbc..ad2a74e38 100644 --- a/modules/commands/ns_group.cpp +++ b/modules/commands/ns_group.cpp @@ -98,7 +98,7 @@ class CommandNSGroup : public Command return; } - if (Config->GetBlock("nickserv")->Get<bool>("restrictopernicks")) + if (Config->GetModule("nickserv")->Get<bool>("restrictopernicks")) for (unsigned i = 0; i < Config->Opers.size(); ++i) { Oper *o = Config->Opers[i]; diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp index 176b78553..73e72803b 100644 --- a/modules/commands/ns_register.cpp +++ b/modules/commands/ns_register.cpp @@ -160,7 +160,7 @@ class CommandNSRegister : public Command return; } - if (Config->GetBlock("nickserv")->Get<bool>("restrictopernicks")) + if (Config->GetModule("nickserv")->Get<bool>("restrictopernicks")) for (unsigned i = 0; i < Config->Opers.size(); ++i) { Oper *o = Config->Opers[i]; diff --git a/modules/commands/os_chankill.cpp b/modules/commands/os_chankill.cpp index 8ddd9e3e3..b56f2e734 100644 --- a/modules/commands/os_chankill.cpp +++ b/modules/commands/os_chankill.cpp @@ -62,7 +62,7 @@ class CommandOSChanKill : public Command if (!reason.empty()) { Anope::string realreason; - if (Config->GetBlock("operserv")->Get<bool>("addakiller") && !source.GetNick().empty()) + if (Config->GetModule("operserv")->Get<bool>("addakiller") && !source.GetNick().empty()) realreason = "[" + source.GetNick() + "] " + reason; else realreason = reason; diff --git a/modules/commands/os_kill.cpp b/modules/commands/os_kill.cpp index 972092ef9..13092bf64 100644 --- a/modules/commands/os_kill.cpp +++ b/modules/commands/os_kill.cpp @@ -34,7 +34,7 @@ class CommandOSKill : public Command { if (reason.empty()) reason = "No reason specified"; - if (Config->GetBlock("operserv")->Get<bool>("addakiller")) + if (Config->GetModule("operserv")->Get<bool>("addakiller")) reason = "(" + source.GetNick() + ") " + reason; Log(LOG_ADMIN, source, this) << "on " << u2->nick << " for " << reason; u2->Kill(source.service->nick, reason); |