From 92e28d4047e9426ceb9ab54aa64a9cf8ff03ed49 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 31 May 2013 18:59:22 +0000 Subject: - 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 --- src/ircd.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/ircd.c') 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 -- cgit