mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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:
parent
fd568fb528
commit
f5f716ea6f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user