InspIRCd v4 is still early in development!
If you use this branch you may experience crashes, weird behaviour, and unannounced breaking changes.
You probably want to use InspIRCd v3 instead.
The "opermotd" Module (v4)
Description
This module adds the /OPERMOTD
command which adds a special message of the day for server operators.
Configuration
To load this module use the following <module>
tag:
<module name="opermotd">
<files>
& <execfiles>
This module extends the core <files>
and <execfiles>
tags with the following fields:
Name | Type | Default Value | Description |
---|---|---|---|
opermotd | Text | None | The file to read or command to execute to obtain the opermotd text. |
Example Usage
Obtains the server operator message of the day by reading opermotd.txt:
<files ...
opermotd="opermotd.txt">
Obtains the server operator message of the day by executing curl https://www.example.com/opermotd.txt
:
<execfiles ...
opermotd="curl https://www.example.com/opermotd.txt">
<oper>
& <type>
This module extends the core <oper>
and <type>
tags with the following fields:
Name | Type | Default Value | Description |
---|---|---|---|
motd | Text | opermotd | The file path or name of the field in <files> / <execfiles> to use when reading the server operator message of the day. |
automotd | Boolean | Yes | Whether to send the server operator message of the day to server operators when they log into their server operator account. |
Example Usage
Shows an oper MOTD to Sadie when they log into their server operator account:
<oper name="Sadie"
...
motd="opermotd"
automotd="yes">
Shows an oper MOTD to server operators of type NetAdmin when they log into their server operator account:
<type name="NetAdmin"
...
motd="opermotd"
automotd="yes">
Commands
Name | Parameter Count | Syntax | Description |
---|---|---|---|
OPERMOTD | 0-1 | [<server>] | Requests the server operator message of the day for <server>. |
Example Usage
Requests the server operator message of the day for the local server:
/OPERMOTD
Requests the server operator message of the day for irc.example.com:
/OPERMOTD irc.example.com