summaryrefslogtreecommitdiff
path: root/src/core/ns_access.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-16 06:19:37 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-16 06:19:37 +0000
commit22e8e87a00404725f32f4a53f57809d917876914 (patch)
tree0833c986ac7149a61227830d3472bb83fb94172e /src/core/ns_access.c
parent15a2e1d4e4ffae3b351cb45183e9a868af37ead1 (diff)
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.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2080 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/ns_access.c')
-rw-r--r--src/core/ns_access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ns_access.c b/src/core/ns_access.c
index e8e43b298..f1a1749d1 100644
--- a/src/core/ns_access.c
+++ b/src/core/ns_access.c
@@ -49,7 +49,7 @@ class CommandNSAccess : public Command
notice_lang(s_NickServ, u, NICK_ACCESS_LIST_X, params[1].c_str());
for (access = nc->access, i = 0; i < nc->accesscount; ++access, ++i)
{
- if (mask && !match_wild(mask, *access))
+ if (mask && !Anope::Match(mask, *access, true))
continue;
u->SendMessage(s_NickServ, " %s", *access);
}
@@ -143,7 +143,7 @@ class CommandNSAccess : public Command
notice_lang(s_NickServ, u, NICK_ACCESS_LIST);
for (access = nc->access, i = 0; i < nc->accesscount; ++access, ++i)
{
- if (mask && !match_wild(mask, *access))
+ if (mask && !Anope::Match(mask, *access, true))
continue;
u->SendMessage(s_NickServ, " %s", *access);
}