[Bantracker] Add feature to prevent setting and forgetting bans/quiets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu IRC Bots |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Some OPs in the Ubuntu community have a bad habit of setting bans/quiets and then forgetting about them. eir (a freenode utility bot) has a feature that I think would help fix this problem. It allows OPs to set an expiration time for their bans. They can also specify an action for the bot to take once the ban expires. To quote the relevant section of http://
"btset index [~time]|[reason]
Sets the ban expiry time and/or the reason for the ban by index.
Reasons
When you set a ban, the bot will PM you requesting a comment on the ban. Simply reply to the comment, whatever you send will be recorded. If you have set more than one ban you will be promted for each in turn.
If you wish to extend the default ban time (channel dependent, typically 24 hours), type this when you enter your comment: ~time comment - e.g. "~14d Trolling".
Time Specification
When commenting or using the btset command times can be specified in days, hours, minutes, seconds or any combination.
Examples:
"~1h" For 1 hour from the time set.
"~4h1m4s" For 4 hours, 1 minute and 4 seconds from the time set.
"~48h" For 48 hours from the time set, (can also use ~2d).
"~14d" For 2 weeks (or 14 days) from the time set.
Actions
When specifying an expiry time it is also possible to change the action that will be taken when the ban expires by prefixing the time with a special character.
# Report the ban has expired to the report channel.
@ Remove the ban eir is opped in the channel, otherwise report the expiry to the report channel.
% Remove the ban if eir is opped, if not try and obtain ops from chanserv. If neither of these is possible the ban will not be removed and the expiry will not be reported.
Example:
"@~1h" Remove the ban in one hour if eir is opped, or report the expiry
"
eir is open source (http://
Changed in ubuntu-bots: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
summary: |
- Add feature to prevent setting and forgetting bans/quiets + [Bantracker] Add feature to prevent setting and forgetting bans/quiets |
tags: | added: bantracker |
Changed in ubuntu-bots: | |
status: | Confirmed → Fix Released |
Hi
i already implemented something like that in my custom version of supybot for ircd-seven
https:/ /code.launchpad .net/~ubuntu- fr/+junk/ supybot- ircd-seven
most features / changes are in Channel :
http:// bazaar. launchpad. net/~ubuntu- fr/+junk/ supybot- ircd-seven/ files/plugins/ Channel/ plugin. py