summaryrefslogtreecommitdiff
path: root/src/commands/cmd_list.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/cmd_list.cpp')
-rw-r--r--src/commands/cmd_list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_list.cpp b/src/commands/cmd_list.cpp
index 8a99ce3e0..eb28fb89c 100644
--- a/src/commands/cmd_list.cpp
+++ b/src/commands/cmd_list.cpp
@@ -49,7 +49,7 @@ CmdResult CommandList::Handle (const std::vector<std::string>& parameters, User
user->WriteNumeric(321, "%s Channel :Users Name",user->nick.c_str());
- if (parameters.size() == 1)
+ if ((parameters.size() == 1) && (!parameters[0].empty()))
{
if (parameters[0][0] == '<')
{