summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-18 04:01:50 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-18 04:01:50 +0000
commit2d731a2feeee0d4802dfbea6daab5a0a7e7ffd9a (patch)
tree77a95956630c4dfd493ca2a9f1fca038bae2d2a4
parentdfdba0dc0e46b8cae8468a35616be7dd20aaea81 (diff)
Fixed strhashcomp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1115 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/commands.cpp2
-rw-r--r--src/dnsqueue.cpp2
-rw-r--r--src/inspircd.cpp2
-rw-r--r--src/modules.cpp2
-rw-r--r--src/xline.cpp2
5 files changed, 10 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index ac5de7267..79f1f7c78 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -159,6 +159,8 @@ struct StrHashComp
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);
}
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp
index e949ddab9..80189a95e 100644
--- a/src/dnsqueue.cpp
+++ b/src/dnsqueue.cpp
@@ -127,6 +127,8 @@ struct StrHashComp
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);
}
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index e2e2b33d7..de5420ddb 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -148,6 +148,8 @@ struct StrHashComp
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);
}
diff --git a/src/modules.cpp b/src/modules.cpp
index aa856e7c0..ef3839b56 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -148,6 +148,8 @@ struct StrHashComp
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);
}
diff --git a/src/xline.cpp b/src/xline.cpp
index 716153b0c..da03c0654 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -145,6 +145,8 @@ struct StrHashComp
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);
}