mod_welcome

Greet users with a message of the day. Part of the bundled plug-ins.

mod_welcome sends a message of the day (MOTD) to each user when they log in, and optionally publishes hub rules. Each configured file also gets a command so users can re-read it on demand.

Loading

plugin /var/lib/uhub/mod_welcome.so "motd=/etc/uhub/motd.txt rules=/etc/uhub/rules.txt"

Configuration

OptionDefaultDescription
motdFile whose contents are sent to each user on login. Enables the !motd command.
rulesFile with the hub rules. Enables the !rules command (not sent automatically).

Commands

CommandAccessDescription
!motdguestShow the message of the day (when motd is configured).
!rulesguestShow the hub rules (when rules is configured).

Substitutions

The following placeholders are expanded in the MOTD and rules text:

TokenExpands to
%nthe user's nick
%athe user's IP address
%cthe user's credentials (guest, user, operator, …)
%%a literal percent sign
%H %I %M %S %p %Pcurrent time fields (hour 24h / hour 12h / minute / second / am-pm)