From 3151fe9f9bc8396d058c316b665375010f58c2f2 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 23 Jul 2017 09:27:28 +0200 Subject: [PATCH] ignore comments in newfactions --- src/modules/autoseed.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/autoseed.c b/src/modules/autoseed.c index ffab4ca46..66013149c 100644 --- a/src/modules/autoseed.c +++ b/src/modules/autoseed.c @@ -157,9 +157,13 @@ 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] == '\0') + } + if (email[0] == '#') { + continue; + } + if (email[0] == '\0') break; if (password[0] == '\0') { size_t sz;