Rules/MOTD files

These are old archives. They are kept for historic purposes only.
Post Reply
lord2800
Posts: 22
Joined: Sun Mar 07, 2004 3:49 am
Location: root: /dev/null

Rules/MOTD files

Post by lord2800 »

I feel incredibly stupid for asking this, I probably overlooked something simple, but here we go.

Is there any special format or identifiers that the rules/motd files have to have? I've checked the documentation, and it seems that the only requirement is that the files be named ircd.rules and ircd.motd respectively. However, when I create a file called ircd.rules with some random text inside it and use /rules on my server, it tells me the rules file is missing. I would imagine that rehashing has nothing to do with it(even though I tried anyway), so could someone give me a quick hand here?
DeadNotBuried
Posts: 44
Joined: Wed Mar 10, 2004 5:30 am
Location: irc.majestic-liaisons.com
Contact:

Post by DeadNotBuried »

ensure you have the approprite tld block in your conf file

E.G.

tld {
mask *@*;
motd "motd.conf";
rules "rules.conf";
};
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post by AngryWolf »

The general and default file names are ircd.motd and ircd.rules, as the documentation describes.

Of course you can override these default settings by using TLD blocks, but this works locally only, on each servers non-local users will still see the default motd/rules. Hope that noone wants to do a /motd other.server.*.

After adding new tld blocks and/or editing motd/rules files, you always have to do a /rehash to make the changes come into effect.

Also note that there are two known (and already fixed) bugs in Unreal3.2-RC2fix that motd/rules files can't be rehashed with "/rehash -all" and the UNIX shell command "./unreal rehash".
lord2800
Posts: 22
Joined: Sun Mar 07, 2004 3:49 am
Location: root: /dev/null

Post by lord2800 »

AngryWolf wrote:Also note that there are two known (and already fixed) bugs in Unreal3.2-RC2fix that motd/rules files can't be rehashed with "/rehash -all" and the UNIX shell command "./unreal rehash".
That was indeed the problem. I was attempting to rehash from the shell command line and expected changes. Rehashing from oper worked perfectly. Thanks for the quick response.
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Post by jewles »

/rehash -motd
/rehash -rules

also work for rehashing only the motd/rules
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
Post Reply