diff options
-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; } |