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 94d8d35ed..450e8f764 100644
--- a/src/users.c
+++ b/src/users.c
@@ -928,14 +928,14 @@ int match_usermask(const char *mask, User * user)
}
if (nick) {
- 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));
+ result = Anope::Match(user->nick, nick, false)
+ && Anope::Match(user->GetIdent().c_str(), username, false)
+ && (Anope::Match(user->host, host, false)
+ || Anope::Match(user->vhost, host, false));
} else {
- result = match_wild_nocase(username, user->GetIdent().c_str())
- && (match_wild_nocase(host, user->host)
- || match_wild_nocase(host, user->vhost));
+ result = Anope::Match(user->GetIdent().c_str(), username, false)
+ && (Anope::Match(user->host, host, false)
+ || Anope::Match(user->vhost, host, false));
}
delete [] mask2;