summaryrefslogtreecommitdiff
path: root/src/users.c
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-18 23:34:32 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-18 23:34:32 +0000
commite11b5b5acedaa0fdd73394e6277ca0ae39f8e4c7 (patch)
tree380694631fb85b75f174db13f13a791b27076a4f /src/users.c
parent12cc6334576c61933383783e94a7b12c818b080b (diff)
Patch from DP, converting all match calls and removing old match method.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2111 5417fbe8-f217-4b02-8779-1006273d7864
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;