From: Art Cancro Date: Thu, 21 Jan 1999 00:23:27 +0000 (+0000) Subject: * Changed module loading path to simply "modules" because after calling X-Git-Tag: v7.86~7935 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=cc39a3e9af27820776dea1e9394b80bc62ce9f50 * Changed module loading path to simply "modules" because after calling get_config(), the cwd is guaranteed to be the correct BBS directory. --- diff --git a/citadel/ChangeLog b/citadel/ChangeLog index ac82ed84f..c56bd85fa 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,3 +1,8 @@ +Wed Jan 20 19:21:51 EST 1999 Art Cancro + * Added some more code to the unfinished MIME parser + * Changed module loading path to simply "modules" because after calling + get_config(), the cwd is guaranteed to be the correct BBS directory. + Tue Jan 19 21:28:29 EST 1999 Art Cancro * Fixed a bug in the user editing command (client side) * Started a rewrite of the MIME parser diff --git a/citadel/server.h b/citadel/server.h index cf76cb14a..72fdb8b80 100644 --- a/citadel/server.h +++ b/citadel/server.h @@ -4,7 +4,7 @@ typedef pthread_t THREAD; /* Uncomment this if you want to track memory leaks. * (Don't do this unless you're a developer!) */ -#define DEBUG_MEMORY_LEAKS +/* #define DEBUG_MEMORY_LEAKS */ struct ExpressMessage { struct ExpressMessage *next; diff --git a/citadel/sysconfig.h b/citadel/sysconfig.h index 49384e425..ebee9008e 100644 --- a/citadel/sysconfig.h +++ b/citadel/sysconfig.h @@ -21,7 +21,7 @@ * your system, define CHATLOG to the filename to be saved to. Otherwise, * set CHATLOG to "/dev/null". */ -#define CHATLOG "/dev/null" +#define CHATLOG "chat.log" /* * SLEEPING refers to the watchdog timer. If a user sits idle without typing diff --git a/citadel/sysdep.c b/citadel/sysdep.c index d43ffc25d..0a0b18578 100644 --- a/citadel/sysdep.c +++ b/citadel/sysdep.c @@ -706,7 +706,6 @@ int main(int argc, char **argv) char tracefile[128]; /* Name of file to log traces to */ int a, i; /* General-purpose variables */ char convbuf[128]; - char modpath[128]; /* specify default port name and trace file */ strcpy(tracefile, ""); @@ -763,8 +762,7 @@ int main(int argc, char **argv) get_config(); lprintf(7, "Initializing loadable modules\n"); - snprintf(modpath, 128, "%s/modules", BBSDIR); - DLoader_Init(modpath); + DLoader_Init("./modules"); lprintf(9, "Modules done initializing.\n"); /* Do non system dependent startup functions */