Fixes for conference ini parsing
This commit is contained in:
parent
6921fc829c
commit
ade66d92f1
6
bbs.c
6
bbs.c
@ -199,15 +199,15 @@ static int mail_area_handler(void* user, const char* section, const char* name,
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (strcasecmp(section, "main") == 0) {
|
if (strcasecmp(section, "main") == 0) {
|
||||||
if (strcasecmp(name, "visible sec level")) {
|
if (strcasecmp(name, "visible sec level") == 0) {
|
||||||
mc->sec_level = atoi(value);
|
mc->sec_level = atoi(value);
|
||||||
} else if (strcasecmp(name, "networked")) {
|
} else if (strcasecmp(name, "networked") == 0) {
|
||||||
if (strcasecmp(value, "true") == 0) {
|
if (strcasecmp(value, "true") == 0) {
|
||||||
mc->networked = 1;
|
mc->networked = 1;
|
||||||
} else {
|
} else {
|
||||||
mc->networked = 0;
|
mc->networked = 0;
|
||||||
}
|
}
|
||||||
} else if (strcasecmp(name, "real names")) {
|
} else if (strcasecmp(name, "real names") == 0) {
|
||||||
if (strcasecmp(value, "true") == 0) {
|
if (strcasecmp(value, "true") == 0) {
|
||||||
mc->realnames = 1;
|
mc->realnames = 1;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user