From: Paul Date: Sat, 4 Oct 2008 21:02:45 +0000 (+0100) Subject: move some more data/log paths missed before X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/5ec20d224f8f4d79c9cb9e5b8546c4a638a35943?ds=sidebyside move some more data/log paths missed before --HG-- branch : paul --- diff --git a/core/error.c b/core/error.c index 5e4e02c2..04c99875 100644 --- a/core/error.c +++ b/core/error.c @@ -40,11 +40,11 @@ void reopen_logfile(int hooknum, void *arg) { if (logfile) fclose(logfile); - logfile=fopen("newserv.log","a"); + logfile=fopen("logs/newserv.log","a"); } void init_logfile() { - logfile=fopen("newserv.log","a"); + logfile=fopen("logs/newserv.log","a"); registerhook(HOOK_CORE_SIGUSR1, reopen_logfile); } diff --git a/qabot/qabot_dbase.c b/qabot/qabot_dbase.c index 987abf5d..4bd50c58 100644 --- a/qabot/qabot_dbase.c +++ b/qabot/qabot_dbase.c @@ -21,7 +21,7 @@ void qabot_loaddb() { time_t created; flag_t flags; - if (!(f = fopen("qab_users", "r"))) + if (!(f = fopen("data/qab_users", "r"))) return; while (!feof(f)) { @@ -41,7 +41,7 @@ void qabot_loaddb() { fclose(f); - if (!(f = fopen("qab_bots", "r"))) + if (!(f = fopen("data/qab_bots", "r"))) return; while (!feof(f)) { @@ -65,7 +65,7 @@ void qabot_savedb() { qab_user* u; qab_bot* b; - if (!(f = fopen("qab_users", "w"))) + if (!(f = fopen("data/qab_users", "w"))) return; for (u = qabot_users; u; u = u->next) @@ -73,7 +73,7 @@ void qabot_savedb() { fclose(f); - if (!(f = fopen("qab_bots", "w"))) + if (!(f = fopen("data/qab_bots", "w"))) return; for (b = qab_bots; b; b = b->next)