forked from github/server
ignore comments in newfactions
This commit is contained in:
parent
daca7b084d
commit
3151fe9f9b
|
@ -157,9 +157,13 @@ newfaction *read_newfactions(const char *filename)
|
||||||
password[0] = '\0';
|
password[0] = '\0';
|
||||||
|
|
||||||
if (sscanf(buf, "%54s %20s %8s %d %d %16s %d", email, race, lang, &bonus,
|
if (sscanf(buf, "%54s %20s %8s %d %d %16s %d", email, race, lang, &bonus,
|
||||||
&subscription, password, &alliance) < 3)
|
&subscription, password, &alliance) < 3) {
|
||||||
break;
|
break;
|
||||||
if (email[0] == '\0')
|
}
|
||||||
|
if (email[0] == '#') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (email[0] == '\0')
|
||||||
break;
|
break;
|
||||||
if (password[0] == '\0') {
|
if (password[0] == '\0') {
|
||||||
size_t sz;
|
size_t sz;
|
||||||
|
|
Loading…
Reference in New Issue