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 *.es; motd "ircd.es.motd"; rules "ircd.es.rules"; }

Or with UnrealIRCd 6.0.4+: /* Spanish MOTD for Spanish speaking countries */ tld { mask { country { ES; AR; BO; CL; CO; CR; DO; EC; SV; GT; HN; MX; NI; PA; PY; PE; PR; UY; VE; } } motd "ircd.es.motd"; rules "ircd.es.rules"; }

You can also use URLs: tld { mask { country FR; } motd "https://example.org/files/ircd.fr.motd"; rules "https://example.org/files/ircd.fr.rules"; }