X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_whois.cpp;h=0df6b65f0e8cde5dd8db2393c93f5c6c5b0ae80d;hb=dafa2f3031c4abc7f5506385770c4fc743669b17;hp=f75bd13fe9de26ffc81f0beaafb4c875088c7672;hpb=8710724b5518ae9858309e548514f76e620a8459;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_whois.cpp b/src/commands/cmd_whois.cpp index f75bd13fe..0df6b65f0 100644 --- a/src/commands/cmd_whois.cpp +++ b/src/commands/cmd_whois.cpp @@ -196,7 +196,7 @@ CmdResult CommandWhois::HandleRemote(const std::vector& parameters, if (!user) return CMD_FAILURE; - unsigned long idle = ConvToInt(parameters[1]); + unsigned long idle = ConvToInt(parameters.back()); DoWhois(user, target, target->signon, idle); return CMD_SUCCESS;