summaryrefslogtreecommitdiff
path: root/src/access.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/access.cpp')
-rw-r--r--src/access.cpp3
1 files changed, 2 insertions, 1 deletions
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;