mirror of
https://github.com/anope/anope.git
synced 2026-06-27 04:46:37 +02:00
Fix a few more modules to look in the right places for certain settings.
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user