From afffeb0a1d49c1ac8f06ac9850929a41a52cbc7e Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 5 Dec 2014 17:27:08 -0500 Subject: Update Kill() calls to pass source pointer instead of name --- modules/commands/os_noop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/os_noop.cpp') diff --git a/modules/commands/os_noop.cpp b/modules/commands/os_noop.cpp index 560f68f27..e0645f1c2 100644 --- a/modules/commands/os_noop.cpp +++ b/modules/commands/os_noop.cpp @@ -47,7 +47,7 @@ class CommandOSNOOP : public Command User *u2 = it->second; if (u2->server == s && u2->HasMode("OPER")) - u2->Kill(source.service->nick, reason); + u2->Kill(*source.service, reason); } } else if (cmd.equals_ci("REVOKE")) @@ -92,7 +92,7 @@ class OSNOOP : public Module { Anope::string reason = "NOOP command used by " + *setter; BotInfo *OperServ = Config->GetClient("OperServ"); - u->Kill(OperServ ? OperServ->nick : "", reason); + u->Kill(OperServ, reason); } } }; -- cgit