summaryrefslogtreecommitdiff
path: root/src/sessions.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/sessions.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/sessions.c')
-rw-r--r--src/sessions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sessions.c b/src/sessions.c
index ea225d888..27c973d69 100644
--- a/src/sessions.c
+++ b/src/sessions.c
@@ -280,7 +280,7 @@ Exception *find_host_exception(const char *host)
int i;
for (i = 0; i < nexceptions; i++) {
- if ((match_wild_nocase(exceptions[i].mask, host))) {
+ if ((Anope::Match(host, exceptions[i].mask, false))) {
return &exceptions[i];
}
}
@@ -295,9 +295,9 @@ Exception *find_hostip_exception(const char *host, const char *hostip)
int i;
for (i = 0; i < nexceptions; i++) {
- if ((match_wild_nocase(exceptions[i].mask, host))
+ if ((Anope::Match(host, exceptions[i].mask, false))
|| ((ircd->nickip && hostip)
- && (match_wild_nocase(exceptions[i].mask, hostip)))) {
+ && (Anope::Match(hostip, exceptions[i].mask, false)))) {
return &exceptions[i];
}
}