From 98a236abb9497d2b2a833d4d2d77069c8e439cde Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 23 Mar 2016 18:52:31 +1000 Subject: [PATCH] Fix for reorganised config files --- README.md | 6 +++--- users.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7f6b701..4c60188 100644 --- a/README.md +++ b/README.md @@ -49,9 +49,9 @@ If you want to install Magicka BBS, follow these steps. `cp -r ansi-default ansi` -8. Run Magicka BBS on a port over 1024 (Below require root, and wer're not ready for that). +8. Run Magicka BBS on a port over 1024 (Below require root, and we're not ready for that). `./magicka config/bbs.ini 2300` -9. Your BBS is now running on port 2300, log in and create yourself an account! (By default there is only one -security level, you can add more, but you will need to use an SQLite Manager to modify users.sq3 and set security levels, as there is no user editor yet. +9. Your BBS is now running on port 2300, log in and create yourself an account! (By default there is only one security level, you can add more, +but you will need to use an SQLite Manager to modify users.sq3 and set security levels, as there is no user editor yet. diff --git a/users.c b/users.c index 918a84c..2b45009 100644 --- a/users.c +++ b/users.c @@ -228,7 +228,7 @@ struct user_record *check_user_pass(int socket, char *loginname, char *password) user->sec_info = (struct sec_level_t *)malloc(sizeof(struct sec_level_t)); - sprintf(buffer, "%s/s%d.ini", conf.bbs_path, user->sec_level); + sprintf(buffer, "%s/config/s%d.ini", conf.bbs_path, user->sec_level); if (ini_parse(buffer, secLevel, user->sec_info) <0) { printf("Unable to load sec Level ini (%s)!\n", buffer); exit(-1);