diff options
Diffstat (limited to 'src/sessions.c')
-rw-r--r-- | src/sessions.c | 6 |
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]; } } |