Skip to content

Commit

Permalink
Fix faulty logic, glob patterns may not start with > or <. TODO: iter…
Browse files Browse the repository at this point in the history
…ate 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
  • Loading branch information
peavey committed Sep 25, 2008
1 parent 0bee078 commit 6d95197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/cmd_list.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 6d95197

Please sign in to comment.