diff options
Diffstat (limited to 'modules/commands/os_kill.cpp')
-rw-r--r-- | modules/commands/os_kill.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/commands/os_kill.cpp b/modules/commands/os_kill.cpp index 898e601e6..99a65ae4b 100644 --- a/modules/commands/os_kill.cpp +++ b/modules/commands/os_kill.cpp @@ -36,10 +36,10 @@ class CommandOSKill : public Command { if (reason.empty()) reason = "No reason specified"; - if (Config->AddAkiller) + if (Config->GetBlock("operserv")->Get<bool>("addakiller")) reason = "(" + source.GetNick() + ") " + reason; Log(LOG_ADMIN, source, this) << "on " << u2->nick << " for " << reason; - u2->Kill(Config->OperServ, reason); + u2->Kill(source.service->nick, reason); } } @@ -59,10 +59,9 @@ class OSKill : public Module CommandOSKill commandoskill; public: - OSKill(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE), + OSKill(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandoskill(this) { - this->SetAuthor("Anope"); } }; |