Commit Graph

30 Commits

Author SHA1 Message Date
Elián Hanisch e3f6aacdf5 added configuration options:
* supybot.plugins.Bantracker.autoremove
* supybot.plugins.Bantracker.autoremove.notify
* supybot.plugins.Bantracker.autoremove.notify.channels
2012-07-04 22:12:55 -03:00
Elián Hanisch 87f61b1654 send notifications when ban are about to expire (notification channel hardcoded to #test) 2012-07-04 21:35:07 -03:00
Elián Hanisch 929ead6611 add an extra test. 2012-07-04 19:52:20 -03:00
Elián Hanisch a3266bc1de @banremoval command now accepts time in different units, such as "2 weeks", "1 month", "24h" and so on.
The units are: minutes, hours, days, weeks, months and years. One letter shortcuts allowed.
2012-07-04 19:23:37 -03:00
Elián Hanisch 3e584e6880 add 'banremove' command for set expire time of bans. 2012-07-04 00:22:53 -03:00
Elián Hanisch 912cc8490c send -b/-q messages when ban/quiet expires 2012-06-27 01:14:51 -03:00
Elián Hanisch 57c349aace Start hack for the ban autoremoval feature:
* BanRemoval class that keeps data about bans that expires.
* BanStore class for store BanRemoval objects
* testBanAutoRemove testcase

right now it doesn't do much.
2012-06-25 19:40:09 -03:00
Elián Hanisch a08559a758 Fix spurious testcase fail, sometimes seconds didn't match. 2012-06-25 19:35:42 -03:00
Elián Hanisch 5ffcf6511a some refactoing.
* added Ban.type property
 * PersistentCache renamed to ReviewStore and made it work more like defaultdict.
2012-06-25 19:30:11 -03:00
Elián Hanisch e69ac691c6 Bantracker: trim messages so they are more to the point. 2011-05-31 03:39:28 -03:00
Elián Hanisch 638ccf7b47 Bantracker: strip '%' from quiets in the string that's send to channels/nicks. 2011-05-31 01:45:05 -03:00
Elián Hanisch 223c3f9229 Bantracker: add separate configs so comment request, and review requests,
can be configured independently.
2011-05-29 19:22:34 -03:00
Elián Hanisch 46d07b8095 bantracker: add options --verbose --view and --flush to banreview command.
intended for manually fix the review queue when the bot messes up.
2011-05-29 19:21:27 -03:00
Terence Simpson ad7a493262 Update copyright/license/author/contributors information
Make sure all files have encoding set to utf-8 unless they already have an encoding
Added COPYING with contense of GPL-2
Added plugin name prefix to all log output. This should take the form of self.log.severity("Plugin: message"),
when not logging from plugin.py use: "Plugin/file_without_dot_py: message"
Bantracker: Made the confgure() function do something, it also creates an initial database if it doesn't exist
Encyclopedia: Made the configure() function do something, it also creates an initial database if it doesn't exist
PackageInfo: Improve the configure() function, it also now creates some initial .list files and prompts to run update_apt and update_apt_file
This goes some way to getting an "ubottu" package together, all we need to do is patch supybot-wizard to download the plugins
from bzr and put them somewhere supybot will see them, then the wizard will do all the initial setup
2010-05-24 14:38:06 +01:00
Elián Hanisch 42a64c4c18 Bantracker: Don't enqueue ban reviews already in queue. Testcase updated. 2010-05-14 00:09:50 -03:00
Elián Hanisch 9ecf076312 new testcase: testReviewIgnore 2010-04-12 23:06:25 -03:00
Elián Hanisch 7538da2329 fix request ignores, It was matching against full hostmask instead of nick.
New testcase: testCommentIgnore
2010-04-12 23:02:07 -03:00
Elián Hanisch 62201d9a12 setup the db before loading the plugin during testing
this fixes a spurious ERROR when the testcase is run for the first time
2010-04-12 21:41:14 -03:00
Elián Hanisch 93f5ef5b9e fix testcases for forced parts 2010-04-12 21:33:15 -03:00
Elián Hanisch 484d45e705 use check_auth in banreview, and made a workaround so testcases still pass 2010-04-04 01:31:15 -03:00
Elián Hanisch ca60ba5aa2 refactor 2010-04-03 23:48:54 -03:00
Elián Hanisch deef5dbf37 merge with main 2010-04-03 20:06:29 -03:00
Elián Hanisch 44b2133f1c Added a fallback: if for some reason we don't have op's full hostmask,
revert to match by nick for send the review. This may be needed in the
future as operator's full hostmask aren't stored in the db.
2010-04-03 13:20:15 -03:00
Elián Hanisch d1d0fc86ab refactoring and getting ready for production, added testcase 2010-04-03 01:44:57 -03:00
Elián Hanisch fd4516f077 fixed testcases 2010-04-03 00:17:26 -03:00
Elián Hanisch 621a739198 improved testcases 2010-04-01 17:52:53 -03:00
Elián Hanisch 6ec87d68dd more testcases for BanTracker 2010-04-01 16:34:59 -03:00
Elián Hanisch 1807883da2 Use floats in reviewAfterTime, this is less confusing.
And make reviewTime option readonly
2010-03-31 00:03:13 -03:00
Elián Hanisch 0eb45f7822 TestCases for comment request and review request.
run then with "supybot-test Bantracker"
2010-03-30 17:13:51 -03:00
Dennis Kaarsemaker aea38c93ff Initial checkin 2006-06-26 19:57:20 +02:00