X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_zline.cpp;h=91d9c6255962e1a10b6aecdbfda9e99370033e79;hb=39ddf2fb7a4d030fc29a7d421e09394cd70dc9bf;hp=3e940a9bd42ad19f936150ae197bc63e20c34940;hpb=02859be56d43bcece02aab350e02bc95ed1bf446;p=user%2Fhenk%2Fcode%2Finspircd.git 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& 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(); }