]> jfr.im git - irc/quakenet/newserv.git/commitdiff
move some more data/log paths missed before
authorPaul <redacted>
Sat, 4 Oct 2008 21:02:45 +0000 (22:02 +0100)
committerPaul <redacted>
Sat, 4 Oct 2008 21:02:45 +0000 (22:02 +0100)
--HG--
branch : paul

core/error.c
qabot/qabot_dbase.c

index 5e4e02c2b25f3e9c2b1524bc8eb41b395f0860d0..04c998756b978bdd2e69d3ad565c83f25c9be582 100644 (file)
@@ -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);
 }
 
index 987abf5dd782865464b9e84e9218bb181be5000e..4bd50c58b02d84a47d88cf4028b281513fb2af67 100644 (file)
@@ -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)