summaryrefslogtreecommitdiff
path: root/src/commands/cmd_zline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/cmd_zline.cpp')
-rw-r--r--src/commands/cmd_zline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/cmd_zline.cpp b/src/commands/cmd_zline.cpp
index 3e940a9bd..91d9c6255 100644
--- a/src/commands/cmd_zline.cpp
+++ b/src/commands/cmd_zline.cpp
@@ -53,9 +53,9 @@ CmdResult CommandZline::Handle (const std::vector<std::string>& parameters, User
return CMD_FAILURE;
}
- User *u = ServerInstance->FindNick(target.c_str());
+ User *u = ServerInstance->FindNick(target);
- if (u)
+ if ((u) && (u->registered == REG_ALL))
{
target = u->GetIPString();
}