From 041d54ff4b1dd537968519863fcd4d8d55e0c911 Mon Sep 17 00:00:00 2001 From: Valery Yatsko Date: Sun, 20 Apr 2008 07:24:50 +0400 Subject: [PATCH] Switched on using cache_user_motd(); for motd update on rehash --- modules/m_rehash.c | 3 +-- src/ircd.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/m_rehash.c b/modules/m_rehash.c index 60d5a187a..dc81c4317 100644 --- a/modules/m_rehash.c +++ b/modules/m_rehash.c @@ -88,8 +88,7 @@ rehash_motd(struct Client *source_p) "%s is forcing re-reading of MOTD file", get_oper_name(source_p)); - free_cachefile(user_motd); - user_motd = cache_file(MPATH, "ircd.motd", 0); + cache_user_motd(); } static void diff --git a/src/ircd.c b/src/ircd.c index 25dec90c0..6a80edd6b 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -314,8 +314,7 @@ check_rehash(void *unused) { sendto_realops_snomask(SNO_GENERAL, L_ALL, "Got signal SIGUSR1, reloading ircd motd file"); - free_cachefile(user_motd); - user_motd = cache_file(MPATH, "ircd.motd", 0); + cache_user_motd(); doremotd = 0; } }