MOTD and Rules

From UnrealIRCd documentation wiki
Jump to navigation Jump to search

When you connect to your IRC server you will see a MOTD (Message Of The Day). Similarly there are MOTD's for IRC Operators and Bots and there is a related command /RULES.

Important notes[edit]

By default the MOTD and RULES files don't exist, so if you want to use them you will need to create them. These files should be normal plaintext and you can put in anything you like. Note that many IRC clients will wrap too long lines, so you may want to restrict it to 78 characters per line.

After making any changes to your MOTD and RULES files you must rehash the IRCd for the changes to become visible.


The MOTD for normal users is configured by creating/editing the file ircd.motd in your conf/ directory.

Short MOTD[edit]

Normally the MOTD you see on connect and the one you see with the /MOTD command are the same. However some users may prefer to have a "short MOTD" on connect and then another (longer) MOTD to be shown if you issue the /MOTD command. If you want this, then you need to create an ircd.smotd file. When both an ircd.smotd and ircd.motd exist then the former will be displayed on-connect and the latter when you issue the /MOTD command.


The OPERMOTD is shown when a user becomes IRC Operator via the /OPER command. This file is called oper.motd in the conf/ directory.


The BOTMOTD is shown when a user becomes a bot. A user becomes a bot when it sets usermode +B (/mode yournick +B). This file is called bot.motd in your conf/ directory.


When you execute the /RULES command the rules file will be shown to the user. This can be useful if you want to keep your MOTD short and tell the user he/she can read the full set of rules by issuing the /RULES command. The file you need to create is called ircd.rules in the conf/ directory.