password not case-sensitive

This commit is contained in:
Enno Rehling 2007-12-13 10:04:53 +00:00
parent bda9885774
commit f3aa517447
2 changed files with 3 additions and 3 deletions

View file

@ -3986,7 +3986,7 @@ writepasswd(void)
F = cfopen(zText, "w");
if (F) {
faction *f;
puts("Schreibe Passwörter...");
puts("writing passwords...");
for (f = factions; f; f = f->next) {
fprintf(F, "%s:%s:%s:%s:%u\n",

View file

@ -179,8 +179,8 @@ checkpasswd(const faction * f, const char * passwd, boolean shortp)
slist = slist->next;
}
#endif
if (strcmp(f->passw, passwd)==0) return true;
if (strcmp(f->override, passwd)==0) return true;
if (unicode_utf8_strcasecmp(f->passw, passwd)==0) return true;
if (unicode_utf8_strcasecmp(f->override, passwd)==0) return true;
return false;
}