Fix for reorganised config files

This commit is contained in:
Andrew Pamment 2016-03-23 18:52:31 +10:00
parent 58679ef14a
commit 98a236abb9
2 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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);