diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-25 12:33:49 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-25 12:33:49 +0000 |
commit | 6d951971f22b24a817c70868c95adb99302bfe1c (patch) | |
tree | 74de423d9b27027cbf7c4d01082d7607e8aaf669 | |
parent | 0bee078104643aca76c8669718671e43251de2f0 (diff) |
Fix faulty logic, glob patterns may not start with > or <. TODO: iterate comma sep tokenlist to catch LIST >0,<10000 as other IRCDs do.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10598 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/commands/cmd_list.cpp | 2 |
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; |