From baf36aee06bc55d39bb91da0478126dcd7631153 Mon Sep 17 00:00:00 2001
From: Bernd Eckenfels <ecki@debian.org>
Date: Mon, 13 Sep 1999 23:54:03 +0200
Subject: absolute path for motd and servers file and other debian changes

---
 doc/ircII.1           |   21 +++++++++++----------
 include/config.h.dist |   14 ++++++++++++++
 include/defs.h.in     |    4 ++--
 source/irc.c          |    5 +++++
 source/server.c       |    4 ++++
 5 files changed, 36 insertions(+), 12 deletions(-)

--- a/source/irc.c
+++ b/source/irc.c
@@ -1021,8 +1021,13 @@
 		u_char	*motd = NULL;
 		int	des;
 
+#ifdef MOTD_ABSFILE
+		malloc_strcpy(&motd, UP(MOTD_FILE));
+#else
 		malloc_strcpy(&motd, irc_lib);
 		malloc_strcat(&motd, UP(MOTD_FILE));
+#endif
+		
 		if (stat(CP(motd), &motd_stat) == 0)
 		{
 			u_char	*s = NULL;
--- a/include/config.h.dist
+++ b/include/config.h.dist
@@ -236,4 +236,18 @@
 #define DEFAULT_XTERM_OPTIONS NULL
 #define DEFAULT_XTERM_PATH "xterm"
 
+/*
+ * These are Debian defaults.
+ */
+#ifdef DEBIAN
+#define COMMAND_LINE_L
+#define ON_KICK
+#undef SERVERS_FILE
+#define SERVERS_FILE "/etc/irc/servers"
+#define SERVERS_ABSFILE
+#undef MOTD_FILE
+#define MOTD_FILE "/etc/irc/motd"
+#define MOTD_ABSFILE
+#endif
+
 #endif /* irc__config_h_ */
