Moved default ansis, moved default config.

This commit is contained in:
Andrew Pamment 2016-03-23 18:23:24 +10:00
parent 7d1b75c29a
commit df13036b88
15 changed files with 9 additions and 6 deletions

2
.gitignore vendored
View File

@ -6,3 +6,5 @@ msgs/*
node*
doors/*
last10.dat
ansis/*
config/*

3
bbs.c
View File

@ -8,6 +8,7 @@
#include <sys/fcntl.h>
#include <signal.h>
#include <sys/utsname.h>
#include <sys/time.h>
#include "inih/ini.h"
#include "bbs.h"
@ -440,7 +441,7 @@ void runbbs(int socket, char *config_path) {
}
}
if (ini_parse("doors.ini", door_config_handler, &conf) <0) {
if (ini_parse("config/doors.ini", door_config_handler, &conf) <0) {
printf("Unable to load configuration ini (doors.ini)!\n");
exit(-1);
}

View File

@ -1,6 +1,6 @@
[main]
BBS Name = Enigma BBS
Sysop Name = Andrew Pamment
BBS Name = Magicka BBS
Sysop Name = sysop
nodes = 4
New User Level = 10
@ -10,4 +10,4 @@ BBS Path = /home/andrew/MagickaBBS
Email Path = /home/andrew/MagickaBBS/msgs/email
[mail conferences]
Local Mail = localmail.ini
Local Mail = config/localmail.ini

2
main.c
View File

@ -14,7 +14,7 @@ int main(int argc, char **argv) {
int port;
if (argc < 3) {
printf("Usage ./magicka bbs.ini port\n");
printf("Usage ./magicka config/bbs.ini port\n");
exit(1);
}

View File

@ -432,7 +432,7 @@ struct user_record *new_user(int socket) {
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);