The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download | Blog
Personal tools

Modules/banreason

From Inspire IRCd (InspIRCd)

Jump to: navigation, search

Description

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.

Configuration Tags

None

Additional Modes

None

Additional Commands

None

Special Notes

As of yet this will only work if the kick is after the ban, so if you /kick a user before you ban them then the reason will not be stored, may be fixed in a later release.

Module available from the Unofficial Modules SVN Repository