0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

Switched on using cache_user_motd(); for motd update on rehash

This commit is contained in:
Valery Yatsko 2008-04-20 07:24:50 +04:00
parent 19a853be58
commit 041d54ff4b
2 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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;
}
}