summaryrefslogtreecommitdiff
path: root/modules/commands/cs_xop.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-16 15:28:21 -0400
committerAdam <Adam@anope.org>2011-08-16 15:28:21 -0400
commit9aa414b1f63196d88731a5fc5adbc56be2c6fb39 (patch)
treee8f82c579a57e4ea400d0c89ceed994a1a8bea89 /modules/commands/cs_xop.cpp
parent2d9ddb065ff53fc853d16040ddeb36215a9a6186 (diff)
Fixed matching acount access entries against nicknames
Diffstat (limited to 'modules/commands/cs_xop.cpp')
-rw-r--r--modules/commands/cs_xop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp
index a6107be3c..365b19e7c 100644
--- a/modules/commands/cs_xop.cpp
+++ b/modules/commands/cs_xop.cpp
@@ -101,7 +101,7 @@ class XOPChanAccess : public ChanAccess
bool Matches(User *u, NickCore *nc)
{
- if (u && (Anope::Match(u->nick, this->mask) || Anope::Match(u->GetMask(), this->mask)))
+ if (u && this->mask.find_first_of("!@?*") != Anope::string::npos && (Anope::Match(u->nick, this->mask) || Anope::Match(u->GetMask(), this->mask)))
return true;
else if (nc && Anope::Match(nc->display, this->mask))
return true;