ignore comments in newfactions

This commit is contained in:
Enno Rehling 2017-07-23 09:27:28 +02:00
parent daca7b084d
commit 3151fe9f9b
1 changed files with 6 additions and 2 deletions

View File

@ -157,8 +157,12 @@ newfaction *read_newfactions(const char *filename)
password[0] = '\0';
if (sscanf(buf, "%54s %20s %8s %d %d %16s %d", email, race, lang, &bonus,
&subscription, password, &alliance) < 3)
&subscription, password, &alliance) < 3) {
break;
}
if (email[0] == '#') {
continue;
}
if (email[0] == '\0')
break;
if (password[0] == '\0') {