Welcome plugin

Current version: 0.1

Sends users login message and hub rules.

Configuration

Open plugins.conf in your favourite text editor and add this line:

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

Parameters:

ParameterDescription
motdPath/filename for the welcome message (message of the day).
rulesPath/filenam for the rules file.

Hub commands

CommandDescription
!motdMessage of the day.
!rulesShow hub rules.

Text substitutions

The messages can do the following substitutions:

SubstitutionDescription
%nNickname of the user who entered the hub or issued the command.
%aIP address of the user.
%cThe credentials of the user (guest, user, op, super, admin).
%%Becomes '%'
%HHour 24-hour format (00-23) (Hub local time)
%IHour 12-hour format (01-12) (Hub local time)
%P'AM' or 'PM'
%p'am' or 'pm'
%MMinutes (00-59) (Hub local time)
%SSeconds (00-60) (Hub local time)