| Designed to help make channel ban lists more useful and understandable, this module attempts to store a ban reason for each +b ban set on a channel.
Instead of adding an extra parameter or new command/mode, which would be needlessly confusing for channel ops, m_banreason detects /kicks, and if the kicked user matches a ban which is set on the channel, the kick reason the op used is stored as the ban reason for the ban.
When you list the bans on a channel with
/MODE #channel +b
or
/MODE #channel b
then the ban reason is sent as a server notice, eg:
>> :garfield.easnet.net NOTICE Om :#test Listing ban reasons
>> :garfield.easnet.net NOTICE Om :#test Reason for banmask O!*@* is "This is reason #1!"
>> :garfield.easnet.net NOTICE Om :#test Reason for banmask Omster!*@* is "And this is reason #2!"
>> :garfield.easnet.net NOTICE Om :#test End of channel ban reason list
The standard 367/368 banlist is also sent.
|