diff options
author | Adam <Adam@anope.org> | 2014-12-05 17:27:08 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-12-05 17:27:08 -0500 |
commit | afffeb0a1d49c1ac8f06ac9850929a41a52cbc7e (patch) | |
tree | dc8bdbcc0ce4faf5b8e10bf071606d9870edf429 /modules/commands/os_noop.cpp | |
parent | 4fc71bb22f77930885b11182ad34705d1160efc0 (diff) |
Update Kill() calls to pass source pointer instead of name
Diffstat (limited to 'modules/commands/os_noop.cpp')
-rw-r--r-- | modules/commands/os_noop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } }; |