From 3ae7efa14f06720b24d17a11e851439fb645376f Mon Sep 17 00:00:00 2001 From: Chin Lee Date: Wed, 16 May 2012 10:14:51 +0800 Subject: Fix issue #120 reported by @swilde --- src/commands/cmd_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/commands/cmd_list.cpp b/src/commands/cmd_list.cpp index 02b65df48..d1eddad9d 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][0] != '<' && parameters[0][0] != '>') && !parameters[0].empty()) { if (!InspIRCd::Match(i->second->name, parameters[0]) && !InspIRCd::Match(i->second->topic, parameters[0])) continue; -- cgit v1.2.3