Joins plugin

Current version: 0.1

Gives users the possibility to set their own message shown to others on login.

Configuration

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

plugin /usr/lib/uhub/mod_joins.so "file=/etc/uhub/joins.db min_cred=user"

Parameters:

ParameterDescription
filePath/filename for database
min_credMinimum credentials able to set their own login messages.
min_cred_notifyMinimum credentials able to see login messages.
server_time_diffTime modifier in hours used for timestamps in hub local time if the server time is different.

Hub commands

CommandDescription
!joinmsg [<message>]Set/delete default join message.
!joinset [<message>]Set/delete own join message.
!joinforce <nick> [<message>]Force/delete join message for a nick.
!joinlistList join messages.

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)