From ade66d92f17663c44cbd9727f2fb070c43865c70 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 27 Mar 2016 13:38:09 +1000 Subject: [PATCH] Fixes for conference ini parsing --- bbs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bbs.c b/bbs.c index 01d9815..a1e4a90 100644 --- a/bbs.c +++ b/bbs.c @@ -199,15 +199,15 @@ static int mail_area_handler(void* user, const char* section, const char* name, int i; if (strcasecmp(section, "main") == 0) { - if (strcasecmp(name, "visible sec level")) { + if (strcasecmp(name, "visible sec level") == 0) { mc->sec_level = atoi(value); - } else if (strcasecmp(name, "networked")) { + } else if (strcasecmp(name, "networked") == 0) { if (strcasecmp(value, "true") == 0) { mc->networked = 1; } else { mc->networked = 0; } - } else if (strcasecmp(name, "real names")) { + } else if (strcasecmp(name, "real names") == 0) { if (strcasecmp(value, "true") == 0) { mc->realnames = 1; } else { @@ -215,7 +215,7 @@ static int mail_area_handler(void* user, const char* section, const char* name, } } else if (strcasecmp(name, "tagline") == 0) { mc->tagline = strdup(value); - } + } } else if (strcasecmp(section, "network") == 0) { if (strcasecmp(name, "type") == 0) { if (strcasecmp(value, "fido") == 0) {