summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands')
-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 900946eaf..f0e1a143e 100644
--- a/src/commands/cmd_list.cpp
+++ b/src/commands/cmd_list.cpp
@@ -51,7 +51,7 @@ CmdResult CommandList::Handle (const std::vector<std::string>& 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] != '>'))
{
if (!InspIRCd::Match(i->second->name, parameters[0]) && !InspIRCd::Match(i->second->topic, parameters[0]))
continue;