diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-18 23:34:32 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-18 23:34:32 +0000 |
commit | e11b5b5acedaa0fdd73394e6277ca0ae39f8e4c7 (patch) | |
tree | 380694631fb85b75f174db13f13a791b27076a4f /src/core/cs_akick.c | |
parent | 12cc6334576c61933383783e94a7b12c818b080b (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/core/cs_akick.c')
-rw-r--r-- | src/core/cs_akick.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/cs_akick.c b/src/core/cs_akick.c index a0efdc067..50a0d8257 100644 --- a/src/core/cs_akick.c +++ b/src/core/cs_akick.c @@ -264,7 +264,7 @@ class CommandCSAKick : public Command if (na2->nc && ((na2->nc == ci->founder) || (get_access_nc(na2->nc, ci) >= get_access(u, ci)))) { snprintf(buf, BUFSIZE, "%s!%s", na2->nick, na2->last_usermask); - if (match_wild_nocase(mask, buf)) { + if (Anope::Match(buf, mask, false)) { notice_lang(s_ChanServ, u, PERMISSION_DENIED); delete [] mask; return MOD_CONT; @@ -536,10 +536,10 @@ class CommandCSAKick : public Command continue; if (mask) { if (!(akick->flags & AK_ISNICK) - && !match_wild_nocase(mask, akick->u.mask)) + && !Anope::Match(akick->u.mask, mask, false)) continue; if ((akick->flags & AK_ISNICK) - && !match_wild_nocase(mask, akick->u.nc->display)) + && !Anope::Match(akick->u.nc->display, mask, false)) continue; } akick_list(u, i, ci, &sent_header); @@ -565,10 +565,10 @@ class CommandCSAKick : public Command continue; if (mask) { if (!(akick->flags & AK_ISNICK) - && !match_wild_nocase(mask, akick->u.mask)) + && !Anope::Match(akick->u.mask, mask, false)) continue; if ((akick->flags & AK_ISNICK) - && !match_wild_nocase(mask, akick->u.nc->display)) + && !Anope::Match(akick->u.nc->display, mask, false)) continue; } akick_view(u, i, ci, &sent_header); |