1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 13:53:12 +02:00

- Made '/REHASH -motd' really rehash *all* MOTD, OPERMOTD, BOTMOTD and RULES

files. Reported by bitmaster (#0003894).
This commit is contained in:
Bram Matthys
2010-03-03 13:56:28 +00:00
parent 982e5a82c0
commit e47baea5da
2 changed files with 4 additions and 3 deletions
+2
View File
@@ -1942,3 +1942,5 @@
error when running './unreal start'.
- Fixed 'unreal' script to give a better error if it cannot find the IRCd
binary.
- Made '/REHASH -motd' really rehash *all* MOTD, OPERMOTD, BOTMOTD and RULES
files. Reported by bitmaster (#0003894).
+2 -3
View File
@@ -74,6 +74,7 @@ extern aMotd *Find_file(char *, short);
#ifdef USE_SSL
extern void reinit_ssl(aClient *);
#endif
void reread_motdsandrules();
/*
@@ -587,9 +588,7 @@ void rehash_motdrules()
{
ConfigItem_tld *tlds;
motd = (aMotd *) read_file_ex(conf_files->motd_file, &motd, &motd_tm);
rules = (aMotd *) read_file(conf_files->rules_file, &rules);
smotd = (aMotd *) read_file_ex(conf_files->smotd_file, &smotd, &smotd_tm);
reread_motdsandrules();
for (tlds = conf_tld; tlds; tlds = (ConfigItem_tld *) tlds->next)
{
tlds->motd = read_file_ex(tlds->motd_file, &tlds->motd, &tlds->motd_tm);