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:
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user