- Lots of doc updates. - Added a "stripcodes" Tcl command. See doc/tcl-commands.doc for more information. - Bot idx's should be considered valid to tcl_valididx. - Always try to detect shared Tcl libraries before static ones. - We now correctly differentiate the +l user flag from the +l bot flag. - Cleaned up modules.c and the module configure stuff quite a bit. - Detect Tcl in $HOME/lib and $HOME/tcl/lib first, as to make it easier to allow users to override the system's Tcl version. - We now support module loading under Darwin (Mac OS X) and NeXT Step. - Don't try to call tcl_notes if the notes module isn't loaded. - Show a more descriptive error message when a listen socket can't be opened. - Fixed Tcl encoding issues with .tcl and .set. - Added a set of Finnish language files and a Finnish MOTD. - time_t isn't unsigned, and therefor %lu should not be used as a conversion specifier. - Fixed a gcc warning in dcc.c. - Added support for Quakenet channel modes. - Removed an invalid killsock() in dcc.c. - Fixed extra spaces being written to chan file. - Reworked 'make config' / module configure process. - Op (+o) implies halfop (+l) now. - Cleaned up and optimized rmspace() and fixfrom(). - Updated recomended Tcl version to 8.4.6. - Fix behavior of the BCST bind. BCST is now correctly triggered for dccbroadcasts, as well as when a bot "says" something on a channel. See doc/tcl-commands.doc for more information. - Remove some unneeded casts. - Fixed performance issues with mv/cp when a lot of files are in the file area. - Typo in doc/COMPILING-FAQ. It's LD_LIBRARY_PATH, not LB_LIBRARY_PATH. - Fix a possible issue with ident code. - Don't let .tcl mkdir create duplicate filedb entries. - Fixed a compile error related to varargs when using old Tcl versions. - Fixed a compile error on systems that don't have socklen_t. - Suppress configure warnings on systems that use newer versions of GNU coreutils.
41 lines
1.6 KiB
Text
41 lines
1.6 KiB
Text
$NetBSD: patch-ab,v 1.4 2004/12/03 12:15:54 adam Exp $
|
|
|
|
--- src/main.c.orig 2004-07-02 21:21:08.000000000 +0000
|
|
+++ src/main.c
|
|
@@ -72,7 +72,7 @@
|
|
# define _POSIX_SOURCE 1 /* Solaris needs this */
|
|
#endif
|
|
|
|
-extern char origbotname[], userfile[], botnetnick[];
|
|
+extern char origbotname[], userfile[], botnetnick[], tempdir[];
|
|
extern int dcc_total, conmask, cache_hit, cache_miss, max_logs, quick_logs;
|
|
extern struct dcc_t *dcc;
|
|
extern struct userrec *userlist;
|
|
@@ -102,7 +102,7 @@ int con_chan = 0; /* Foreground: c
|
|
int term_z = 0; /* Foreground: use the terminal as a partyline? */
|
|
int use_stderr = 1; /* Send stuff to stderr instead of logfiles? */
|
|
|
|
-char configfile[121] = "eggdrop.conf"; /* Default config file name */
|
|
+char configfile[121] = __PKG_SYSCONFDIR__ "eggdrop.conf"; /* Default config file name */
|
|
char pid_file[120]; /* Name of the pid file */
|
|
char helpdir[121] = "help/"; /* Directory of help files */
|
|
char textdir[121] = "text/"; /* Directory for text files */
|
|
@@ -726,6 +726,8 @@ int main(int argc, char **argv)
|
|
}
|
|
#endif
|
|
|
|
+ chdir(__PREFIX__ "/share/eggdrop");
|
|
+
|
|
/* Initialise context list */
|
|
for (i = 0; i < 16; i++)
|
|
Context;
|
|
@@ -825,7 +827,8 @@ int main(int argc, char **argv)
|
|
cache_miss = 0;
|
|
cache_hit = 0;
|
|
if (!pid_file[0])
|
|
- egg_snprintf(pid_file, sizeof pid_file, "pid.%s", botnetnick);
|
|
+ egg_snprintf(pid_file, sizeof pid_file, "%.100s/pid.%.32s",
|
|
+ tempdir, botnetnick);
|
|
|
|
/* Check for pre-existing eggdrop! */
|
|
f = fopen(pid_file, "r");
|