X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_list.cpp;h=2f417bc04dbe89d926af1f685aa4c8d1ee49c542;hb=f2566ff550bc3516eb35fab76217384866de8bcb;hp=02b65df48ce4b44937565481a370a8d80eede1fa;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_list.cpp b/src/commands/cmd_list.cpp index 02b65df48..2f417bc04 100644 --- a/src/commands/cmd_list.cpp +++ b/src/commands/cmd_list.cpp @@ -73,7 +73,7 @@ CmdResult CommandList::Handle (const std::vector& parameters, User if (too_many || too_few) continue; - if (parameters.size() && (parameters[0][0] != '<' && parameters[0][0] != '>')) + if (parameters.size() && !parameters[0].empty() && (parameters[0][0] != '<' && parameters[0][0] != '>')) { if (!InspIRCd::Match(i->second->name, parameters[0]) && !InspIRCd::Match(i->second->topic, parameters[0])) continue;