From c462a69b7da4570ed07e627d81dbb80e012c7788 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 13 Jan 2012 15:37:17 -0500 Subject: Only match users nicks against access list entries if the entry is a mask... accidentally removed from an earlier fix for #1368 --- src/access.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/access.cpp') diff --git a/src/access.cpp b/src/access.cpp index d82953c7f..7639b7723 100644 --- a/src/access.cpp +++ b/src/access.cpp @@ -122,7 +122,8 @@ void ChanAccess::unserialize(serialized_data &data) bool ChanAccess::Matches(User *u, NickCore *nc) { - if (u && Anope::Match(u->nick, this->mask)) + bool is_mask = this->mask.find_first_of("!@?*") != Anope::string::npos; + if (u && is_mask && Anope::Match(u->nick, this->mask)) return true; else if (u && Anope::Match(u->GetDisplayedMask(), this->mask)) return true; -- cgit