[Bantracker] Add feature to prevent setting and forgetting bans/quiets

Bug #521842 reported by Nathan Handler
16
This bug affects 3 people
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://freenode.net/eir.shtml

"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://dev.freenode.net/eir), and I think it would be very useful if we were to add similar functionality to the Ubuntu bots.

Tags: bantracker
Revision history for this message
niko (nicolascoevoet) wrote :

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

m4v (m4v)
Changed in ubuntu-bots:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
m4v (m4v) wrote :

Borrowing some ideas from eir would be nice.
I'll look at this when I get some time (If nobody else does it first)

@niko: I know your bot already does this, but this has to be implemented in current bt plugin.

summary: - Add feature to prevent setting and forgetting bans/quiets
+ [Bantracker] Add feature to prevent setting and forgetting bans/quiets
tags: added: bantracker
Alan Bell (alanbell)
Changed in ubuntu-bots:
status: Confirmed → Fix Released
Revision history for this message
m4v (m4v) wrote :

this bug is about implementing eir's features in our Bantracker, that we are using eir now doesn't fix this.

Changed in ubuntu-bots:
status: Fix Released → Confirmed
Revision history for this message
m4v (m4v) wrote :

This is implemented in Bantracker now, one difference with eir is that the only action available is removing the ban, you can't set a date and get a report when it expires. Ubottu already has a separate feature that warns about old bans.

Changed in ubuntu-bots:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.