Moved default ansis, moved default config.
This commit is contained in:
parent
7d1b75c29a
commit
df13036b88
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,3 +6,5 @@ msgs/*
|
|||||||
node*
|
node*
|
||||||
doors/*
|
doors/*
|
||||||
last10.dat
|
last10.dat
|
||||||
|
ansis/*
|
||||||
|
config/*
|
||||||
|
3
bbs.c
3
bbs.c
@ -8,6 +8,7 @@
|
|||||||
#include <sys/fcntl.h>
|
#include <sys/fcntl.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
|
#include <sys/time.h>
|
||||||
#include "inih/ini.h"
|
#include "inih/ini.h"
|
||||||
#include "bbs.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");
|
printf("Unable to load configuration ini (doors.ini)!\n");
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[main]
|
[main]
|
||||||
BBS Name = Enigma BBS
|
BBS Name = Magicka BBS
|
||||||
Sysop Name = Andrew Pamment
|
Sysop Name = sysop
|
||||||
nodes = 4
|
nodes = 4
|
||||||
New User Level = 10
|
New User Level = 10
|
||||||
|
|
||||||
@ -10,4 +10,4 @@ BBS Path = /home/andrew/MagickaBBS
|
|||||||
Email Path = /home/andrew/MagickaBBS/msgs/email
|
Email Path = /home/andrew/MagickaBBS/msgs/email
|
||||||
|
|
||||||
[mail conferences]
|
[mail conferences]
|
||||||
Local Mail = localmail.ini
|
Local Mail = config/localmail.ini
|
2
main.c
2
main.c
@ -14,7 +14,7 @@ int main(int argc, char **argv) {
|
|||||||
int port;
|
int port;
|
||||||
|
|
||||||
if (argc < 3) {
|
if (argc < 3) {
|
||||||
printf("Usage ./magicka bbs.ini port\n");
|
printf("Usage ./magicka config/bbs.ini port\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
users.c
2
users.c
@ -432,7 +432,7 @@ struct user_record *new_user(int socket) {
|
|||||||
|
|
||||||
user->sec_info = (struct sec_level_t *)malloc(sizeof(struct sec_level_t));
|
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) {
|
if (ini_parse(buffer, secLevel, user->sec_info) <0) {
|
||||||
printf("Unable to load sec Level ini (%s)!\n", buffer);
|
printf("Unable to load sec Level ini (%s)!\n", buffer);
|
||||||
|
Reference in New Issue
Block a user