diff --git a/bbs.h b/bbs.h index ee22c86..6f76e0f 100644 --- a/bbs.h +++ b/bbs.h @@ -43,7 +43,6 @@ struct text_file { struct door_config { char *name; - char key; char *command; int stdio; }; diff --git a/config_default/doors.ini b/config_default/doors.ini index ad3439b..07de642 100644 --- a/config_default/doors.ini +++ b/config_default/doors.ini @@ -1,6 +1,4 @@ [Test Door] -; the key to press in the door menu must not be Q or G not case sensitive -key = 0 ; the command is passed node number as first argument ; and socket number as second argument. command = /home/andrew/MagickaBBS/doors/rundoor.sh diff --git a/main.c b/main.c index 1b9dacc..a3cfbd2 100644 --- a/main.c +++ b/main.c @@ -202,9 +202,7 @@ static int door_config_handler(void* user, const char* section, const char* name for (i=0;idoor_count;i++) { if (strcasecmp(conf->doors[i]->name, section) == 0) { // found it - if (strcasecmp(name, "key") == 0) { - conf->doors[i]->key = value[0]; - } else if (strcasecmp(name, "command") == 0) { + if (strcasecmp(name, "command") == 0) { conf->doors[i]->command = strdup(value); } else if (strcasecmp(name, "stdio") == 0) { if (strcasecmp(value, "true") == 0) { @@ -227,9 +225,7 @@ static int door_config_handler(void* user, const char* section, const char* name conf->doors[conf->door_count]->name = strdup(section); - if (strcasecmp(name, "key") == 0) { - conf->doors[conf->door_count]->key = value[0]; - } else if (strcasecmp(name, "command") == 0) { + if (strcasecmp(name, "command") == 0) { conf->doors[conf->door_count]->command = strdup(value); } else if (strcasecmp(name, "stdio") == 0) { if (strcasecmp(value, "true") == 0) {