diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-28 19:54:36 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-28 19:54:36 +0000 |
commit | f5f716ea6feafaa79a2dfa40895d77d3e0f39f60 (patch) | |
tree | b9632efd00a076048a75cbcdc61e83300587d35a /src | |
parent | fd568fb528e3de8a2b7d8e22faab632d85e61aec (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/xline.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index 17acb0272..a6ed0e605 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -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; } |