summaryrefslogtreecommitdiff
path: root/irc/eggdrop/files/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'irc/eggdrop/files/patch-ab')
-rw-r--r--irc/eggdrop/files/patch-ab49
1 files changed, 24 insertions, 25 deletions
diff --git a/irc/eggdrop/files/patch-ab b/irc/eggdrop/files/patch-ab
index 464c0127e75e..e1a09664c700 100644
--- a/irc/eggdrop/files/patch-ab
+++ b/irc/eggdrop/files/patch-ab
@@ -1,39 +1,38 @@
---- src/main.c.orig Sun Jul 15 09:15:14 2001
-+++ src/main.c Thu Nov 1 12:55:48 2001
-@@ -61,7 +61,7 @@
+--- src/main.c.orig Mon May 5 06:05:32 2003
++++ src/main.c Mon Jun 2 11:16:57 2003
+@@ -70,7 +70,7 @@
#define _POSIX_SOURCE 1
#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;
-@@ -94,7 +94,7 @@
- stats? */
- int term_z = 0; /* Foreground: use the terminal as a party
- line? */
--char configfile[121] = "eggdrop.conf"; /* Name of the config file */
-+char configfile[121] = __PREFIX__ "/etc/eggdrop.conf";
- char helpdir[121]; /* Directory of help files (if used) */
- char textdir[121] = ""; /* Directory for text files that get dumped */
- int keep_all_logs = 0; /* Never erase logfiles, no matter how old
-@@ -709,6 +709,8 @@
- setrlimit(RLIMIT_CORE, &cdlim);
+-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;
+@@ -101,7 +101,7 @@
+ * stats? */
+ int term_z = 0; /* Foreground: use the terminal as a party
+ * line? */
+-char configfile[121] = "eggdrop.conf"; /* Name of the config file */
++char configfile[121] = __PREFIX__ "eggdrop.conf"; /* Name of the config file */
+ char helpdir[121] = "help/"; /* Directory of help files (if used) */
+ char textdir[121] = "text/"; /* Directory for text files that get dumped */
+ int keep_all_logs = 0; /* Never erase logfiles, no matter how old
+@@ -735,6 +735,8 @@
}
#endif
-+
-+ chdir(__PREFIX__ "/share/eggdrop");
++ chdir(__PREFIX__ "/share/eggdrop");
++
/* Initialise context list */
for (i = 0; i < 16; i++)
-@@ -809,7 +809,8 @@
+ Context;
+@@ -834,7 +836,7 @@
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);
+- 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");