Move matches_qline to Matches, though this won't work properly .. :s

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8408 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2007-10-28 19:54:36 +00:00
parent fd568fb528
commit f5f716ea6f

View File

@ -357,7 +357,7 @@ QLine* XLineManager::matches_qline(const char* nick)
return NULL;
for (std::vector<QLine*>::iterator i = qlines.begin(); i != qlines.end(); i++)
if (match(nick,(*i)->nick))
if ((*i)->Matches(user))
return (*i);
return NULL;
}
@ -701,5 +701,8 @@ bool ZLine::Matches(User *u)
bool QLine::Matches(User *u)
{
if (match(user->nick, this->nick))
return true;
return false;
}