From f5f716ea6feafaa79a2dfa40895d77d3e0f39f60 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 28 Oct 2007 19:54:36 +0000 Subject: 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 --- src/xline.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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::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; } -- cgit v1.2.3