From 805d47c98e48df374976972c3fcbba36fd4289f8 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 7 Dec 2008 18:31:57 +0000 Subject: Move stuff to use ASCII map where required. Also move this out of being a member totally, as it breaks (gah) and is already untidy.. to be revisited. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10858 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/xline.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/xline.cpp') diff --git a/src/xline.cpp b/src/xline.cpp index 22086375d..02560a97b 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -466,10 +466,10 @@ bool KLine::Matches(User *u) if (u->exempt) return false; - if (InspIRCd::Match(u->ident, this->identmask)) + if (InspIRCd::Match(u->ident, this->identmask, ascii_case_insensitive_map)) { - if (InspIRCd::MatchCIDR(u->host, this->hostmask) || - InspIRCd::MatchCIDR(u->GetIPString(), this->hostmask)) + if (InspIRCd::MatchCIDR(u->host, this->hostmask, ascii_case_insensitive_map) || + InspIRCd::MatchCIDR(u->GetIPString(), this->hostmask, ascii_case_insensitive_map)) { return true; } @@ -488,10 +488,10 @@ bool GLine::Matches(User *u) if (u->exempt) return false; - if (InspIRCd::Match(u->ident, this->identmask)) + if (InspIRCd::Match(u->ident, this->identmask, ascii_case_insensitive_map)) { - if (InspIRCd::MatchCIDR(u->host, this->hostmask) || - InspIRCd::MatchCIDR(u->GetIPString(), this->hostmask)) + if (InspIRCd::MatchCIDR(u->host, this->hostmask, ascii_case_insensitive_map) || + InspIRCd::MatchCIDR(u->GetIPString(), this->hostmask, ascii_case_insensitive_map)) { return true; } @@ -510,10 +510,10 @@ bool ELine::Matches(User *u) if (u->exempt) return false; - if (InspIRCd::Match(u->ident, this->identmask)) + if (InspIRCd::Match(u->ident, this->identmask, ascii_case_insensitive_map)) { - if (InspIRCd::MatchCIDR(u->host, this->hostmask) || - InspIRCd::MatchCIDR(u->GetIPString(), this->hostmask)) + if (InspIRCd::MatchCIDR(u->host, this->hostmask, ascii_case_insensitive_map) || + InspIRCd::MatchCIDR(u->GetIPString(), this->hostmask, ascii_case_insensitive_map)) { return true; } -- cgit v1.2.3