summaryrefslogtreecommitdiff
path: root/src/users.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.c')
-rw-r--r--src/users.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/users.c b/src/users.c
index 3c66fedaf..4be186909 100644
--- a/src/users.c
+++ b/src/users.c
@@ -928,14 +928,14 @@ int match_usermask(const char *mask, User * user)
}
if (nick) {
- result = Anope::Match(nick, user->nick, false)
- && Anope::Match(username, user->GetIdent().c_str(), false)
- && (Anope::Match(host, user->host, false)
- || Anope::Match(host, user->vhost, false));
+ result = match_wild_nocase(nick, user->nick)
+ && match_wild_nocase(username, user->GetIdent().c_str())
+ && (match_wild_nocase(host, user->host)
+ || match_wild_nocase(host, user->vhost));
} else {
- result = Anope::Match(username, user->GetIdent().c_str(), false)
- && (Anope::Match(host, user->host, false)
- || Anope::Match(host, user->vhost, false));
+ result = match_wild_nocase(username, user->GetIdent().c_str())
+ && (match_wild_nocase(host, user->host)
+ || match_wild_nocase(host, user->vhost));
}
delete [] mask2;