diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-16 09:17:24 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-16 09:17:24 +0000 |
commit | 010c774bc241f0c3a9c116988bfc3637cf64c5d7 (patch) | |
tree | 65a80fd39dadfa703a484799b338ea1518efbbbf /src/core/cs_akick.c | |
parent | 22e8e87a00404725f32f4a53f57809d917876914 (diff) |
Revert "Patch from DukePyrolator to replace all calls to match_wild() and match_wild_nocase() to use Anope::Match() instead. Also changes line-endings on wildcard.cpp to Unix-style, as well as fixes a small compile warning in language.c."
This reverts commit fcab9857f55567f10eaecbd6b26ee96f0f549d65.
This isn't a simple sed operation, the order of arguments changed, so this would break everything using it.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2081 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 0f360f009..a0efdc067 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 (Anope::Match(mask, buf, false)) { + if (match_wild_nocase(mask, buf)) { 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) - && !Anope::Match(mask, akick->u.mask, false)) + && !match_wild_nocase(mask, akick->u.mask)) continue; if ((akick->flags & AK_ISNICK) - && !Anope::Match(mask, akick->u.nc->display, false)) + && !match_wild_nocase(mask, akick->u.nc->display)) continue; } akick_list(u, i, ci, &sent_header); @@ -565,10 +565,10 @@ class CommandCSAKick : public Command continue; if (mask) { if (!(akick->flags & AK_ISNICK) - && !Anope::Match(mask, akick->u.mask, false)) + && !match_wild_nocase(mask, akick->u.mask)) continue; if ((akick->flags & AK_ISNICK) - && !Anope::Match(mask, akick->u.nc->display, false)) + && !match_wild_nocase(mask, akick->u.nc->display)) continue; } akick_view(u, i, ci, &sent_header); |