View Issue Details

IDProjectCategoryView StatusLast Update
0006279unrealircdpublic2023-06-12 20:20
Reportertpalomaki Assigned Tosyzop  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version6.0.5 
Summary0006279: MOTD File is missing: does not read the ircd.motd file even if it was created
Descriptionfirst time adding ircd.motd file when server is running does not work.
changing the ircd.motd file while running in any circumstance should work.
use the file modification date instead of ./unrealircd rehash to reload motd.
Steps To Reproducestart server without the ircd.motd in the conf/ directory.
create a proper ircd.motd file to the conf/ directory without restarting the unrealircd server.
restart the unrealircd server and it will read it.
Tagsmotd
3rd party modules

Activities

syzop

2023-06-12 19:10

administrator   ~0022891

Last edited: 2023-06-12 19:10

Did you REHASH ? https://www.unrealircd.org/docs/Rehashing_the_IRCd

tpalomaki

2023-06-12 19:26

reporter   ~0022894

yep afterwards, but I assumed just editing the text file would be enough, not requiring rehash

syzop

2023-06-12 20:16

administrator   ~0022895

Last edited: 2023-06-12 20:20

Ah ok, no as https://www.unrealircd.org/docs/Rehashing_the_IRCd explains, after any configuration change you need to REHASH. That's for all unrealircd configuration/files.
I can understand if you don't know that it could be frustrating because you don't see the change. But I think once you know, it is not much of a problem :)

We talk about rehashing a lot, and the https://www.unrealircd.org/docs/Rehashing_the_IRCd page is referenced from 40+ other pages.

On https://www.unrealircd.org/docs/MOTD_and_Rules the rehashing is explained too. That page is referenced from Configuration, UnrealIRCd files and directories, TLD block, and some other pages. Not sure how many people read it from there. But i also see this in the example.conf:
/* Finally, you may wish to have a MOTD (Message of the Day), this can be
 * done by creating an 'ircd.motd' text file in your conf/ directory.
 * This file will be shown to your users on connect.
 * For more information see https://www.unrealircd.org/docs/MOTD_and_Rules
 */

It doesn't mention rehashing itself, but it does mention mention the page where it tells you to rehash.

Maybe we should put a comment in example.conf about rehashing in general. And/or in the "installation" guides. I'll have a look.

syzop

2023-06-12 20:19

administrator   ~0022896

I've added this in the installation guide for both source and windows:
* If the server is running and you change any configuration files (or MOTD) then be sure to [[Rehashing the IRCd|REHASH]] to make the changes take effect.

Issue History

Date Modified Username Field Change
2023-06-10 19:18 tpalomaki New Issue
2023-06-10 19:18 tpalomaki Tag Attached: motd
2023-06-12 19:10 syzop Note Added: 0022891
2023-06-12 19:10 syzop Note Edited: 0022891
2023-06-12 19:11 syzop Assigned To => syzop
2023-06-12 19:11 syzop Status new => feedback
2023-06-12 19:26 tpalomaki Note Added: 0022894
2023-06-12 20:16 syzop Status feedback => closed
2023-06-12 20:16 syzop Resolution open => no change required
2023-06-12 20:16 syzop Note Added: 0022895
2023-06-12 20:16 syzop Note Edited: 0022895
2023-06-12 20:19 syzop Note Added: 0022896
2023-06-12 20:20 syzop Note Edited: 0022895