From 010c774bc241f0c3a9c116988bfc3637cf64c5d7 Mon Sep 17 00:00:00 2001 From: rburchell Date: Mon, 16 Feb 2009 09:17:24 +0000 Subject: 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 --- src/users.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/users.c') diff --git a/src/users.c b/src/users.c index 3c66fedaf..4be186909 100644 --- a/src/users.c +++ b/src/users.c @@ -928,14 +928,14 @@ int match_usermask(const char *mask, User * user) } if (nick) { - result = Anope::Match(nick, user->nick, false) - && Anope::Match(username, user->GetIdent().c_str(), false) - && (Anope::Match(host, user->host, false) - || Anope::Match(host, user->vhost, false)); + result = match_wild_nocase(nick, user->nick) + && match_wild_nocase(username, user->GetIdent().c_str()) + && (match_wild_nocase(host, user->host) + || match_wild_nocase(host, user->vhost)); } else { - result = Anope::Match(username, user->GetIdent().c_str(), false) - && (Anope::Match(host, user->host, false) - || Anope::Match(host, user->vhost, false)); + result = match_wild_nocase(username, user->GetIdent().c_str()) + && (match_wild_nocase(host, user->host) + || match_wild_nocase(host, user->vhost)); } delete [] mask2; -- cgit