summaryrefslogtreecommitdiff
path: root/src/ircd.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-31 18:59:22 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-31 18:59:22 +0000
commit92e28d4047e9426ceb9ab54aa64a9cf8ff03ed49 (patch)
tree12d6666e4d74298b662271ffdca2b0735eb1f48a /src/ircd.c
parent99740e83f2f8a94467ba301431ca2c4192c4c2ed (diff)
- Implement motd{} configuration blocks based on ircu's implementation
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2151 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src/ircd.c')
-rw-r--r--src/ircd.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ircd.c b/src/ircd.c
index b15d10e..5e0942d 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -56,7 +56,7 @@
#include "mempool.h"
#include "hook.h"
#include "ircd_getopt.h"
-#include "motd.h"
+#include "message.h"
#include "supported.h"
#include "watch.h"
#include "conf_db.h"
@@ -251,9 +251,9 @@ io_loop(void)
}
if (doremotd)
{
- read_message_file(&ConfigFileEntry.motd);
+ motd_recache();
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
- "Got signal SIGUSR1, reloading ircd motd file");
+ "Got signal SIGUSR1, reloading motd files");
doremotd = 0;
}
}
@@ -306,10 +306,8 @@ initialize_global_set_options(void)
static void
initialize_message_files(void)
{
- init_message_file(USER_MOTD, MPATH, &ConfigFileEntry.motd);
init_message_file(USER_LINKS, LIPATH, &ConfigFileEntry.linksfile);
- read_message_file(&ConfigFileEntry.motd);
read_message_file(&ConfigFileEntry.linksfile);
init_isupport();
@@ -563,6 +561,7 @@ main(int argc, char *argv[])
initialize_server_capabs(); /* Set up default_server_capabs */
initialize_global_set_options();
channel_init();
+ motd_init();
#ifdef HAVE_LIBGEOIP
geoip_ctx = GeoIP_new(GEOIP_MEMORY_CACHE);
#endif