From 1d0bb9b26b7ad58ab0bf979ac046f4511b3bf12b Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 5 May 2013 01:55:04 -0400 Subject: Rework the config file reader to be much more flexible and move many configuration directives to the actual modules they are used in. --- modules/commands/os_kill.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/os_kill.cpp') diff --git a/modules/commands/os_kill.cpp b/modules/commands/os_kill.cpp index d3eeedda5..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("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); } } -- cgit