From 76317750956e2bf4b80478e4f0f04160d12347ce Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 15 May 2005 19:27:38 +0000 Subject: Updated strhashcomp to use irc::string internally rather than a combination of strlower and strcasecmp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1400 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/hashcomp.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/hashcomp.cpp') diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index ca7394baa..96811715d 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -82,12 +82,9 @@ size_t nspace::hash::operator()(const string &s) const bool irc::StrHashComp::operator()(const std::string& s1, const std::string& s2) const { - char a[MAXBUF],b[MAXBUF]; - strlcpy(a,s1.c_str(),MAXBUF); - strlcpy(b,s2.c_str(),MAXBUF); - strlower(a); - strlower(b); - return (strcasecmp(a,b) == 0); + irc::string a = s1.c_str(); + irc::string b = s2.c_str(); + return (a == b); } bool irc::InAddr_HashComp::operator()(const in_addr &s1, const in_addr &s2) const -- cgit v1.2.3