Switched on using cache_user_motd(); for motd update on rehash
This commit is contained in:
parent
95d7b51fc3
commit
a822ef295a
|
@ -88,8 +88,7 @@ rehash_motd(struct Client *source_p)
|
||||||
"%s is forcing re-reading of MOTD file",
|
"%s is forcing re-reading of MOTD file",
|
||||||
get_oper_name(source_p));
|
get_oper_name(source_p));
|
||||||
|
|
||||||
free_cachefile(user_motd);
|
cache_user_motd();
|
||||||
user_motd = cache_file(MPATH, "ircd.motd", 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -314,8 +314,7 @@ check_rehash(void *unused)
|
||||||
{
|
{
|
||||||
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
||||||
"Got signal SIGUSR1, reloading ircd motd file");
|
"Got signal SIGUSR1, reloading ircd motd file");
|
||||||
free_cachefile(user_motd);
|
cache_user_motd();
|
||||||
user_motd = cache_file(MPATH, "ircd.motd", 0);
|
|
||||||
doremotd = 0;
|
doremotd = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue