summaryrefslogtreecommitdiff
path: root/modules/commands/os_kill.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/os_kill.cpp')
-rw-r--r--modules/commands/os_kill.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/os_kill.cpp b/modules/commands/os_kill.cpp
index e7f78b1b5..83cd81f58 100644
--- a/modules/commands/os_kill.cpp
+++ b/modules/commands/os_kill.cpp
@@ -27,7 +27,7 @@ class CommandOSKill : public Command
const Anope::string &nick = params[0];
Anope::string reason = params.size() > 1 ? params[1] : "";
- User *u2 = finduser(nick);
+ User *u2 = User::Find(nick, true);
if (u2 == NULL)
source.Reply(NICK_X_NOT_IN_USE, nick.c_str());
else if (u2->IsProtected() || u2->server == Me)