TLD block

By default everyone gets to see the same MOTD (ircd.motd file), rules (ircd.rules file), opermotd, etc... With the tld block you can show different files to a user depending on their hostname or IP. This is for example useful if you want different motds for different languages.

Syntax
tld { mask ; motd ; rules ; shortmotd ; opermotd ; botmotd ; channel ; options { tls; }; };

The tld::mask is a user@host mask that the user's username and hostname must match. The tld::motd, tld::shortmotd, tld::opermotd, tld::botmotd, and tld::rules specify the motd, shortmotd, opermotd, botmotd, and rules file, respectively, to be displayed to this hostmask. The tld::shortmotd, tld::opermotd, and tld::botmotd are optional. tld::channel is optional as well, it allows you to specify a channel that this user will be forced to join on connect. If this exists it will override the default auto join channel. The tld::options block allows you to define additional requirements, currently only tld::options::tls which only displays the file for SSL/TLS users, and tld::options::remote which only displays the file for remote users, exists.

TLD entries are matched upside down

Examples
tld { mask *@*.fr; motd "ircd.motd.fr"; rules "ircd.rules.fr"; }

Or with UnrealIRCd 6: tld { mask { *.fr; ~country:FR; } /* from France either by .fr host, or according to GEOIP module */ motd "ircd.motd.fr"; rules "ircd.rules.fr"; }

You can also use URLs: tld { mask { *.fr; ~country:FR; } /* from France either by .fr host, or according to GEOIP module */ motd "https://example.org/files/ircd.motd.fr"; rules "https://example.org/files/ircd.rules.fr"; }