summaryrefslogtreecommitdiff
path: root/src/tools/db-convert.h
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-29 09:32:32 +0000
committerDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-29 09:32:32 +0000
commitf9cd8c200c171c55d36810e3281d61c1d416ddd5 (patch)
tree969cc88e689a683dbf7547790a2e97b12e528feb /src/tools/db-convert.h
parent0557f090fb098944eca8a65bdb7f1c34864c8484 (diff)
the database converter can now handle a broken bot.db from 1.9.0
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2677 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/tools/db-convert.h')
-rw-r--r--src/tools/db-convert.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tools/db-convert.h b/src/tools/db-convert.h
index f1bd68d44..edc0441e2 100644
--- a/src/tools/db-convert.h
+++ b/src/tools/db-convert.h
@@ -1163,4 +1163,19 @@ static long base64_to_int(char *b64)
return v;
}
+int stricmp(const char *s1, const char *s2)
+{
+ register int c;
+
+ while ((c = tolower(*s1)) == tolower(*s2)) {
+ if (c == 0)
+ return 0;
+ s1++;
+ s2++;
+ }
+ if (c < tolower(*s2))
+ return -1;
+ return 1;
+}
+