Elián Hanisch
800a228d92
banremove should only work with bans or quiets.
2012-07-05 19:12:38 -03:00
Elián Hanisch
4d5ea85544
fix autoremoving quiets
2012-07-05 19:08:44 -03:00
Elián Hanisch
e3dd878cf3
save ban autoremoval information in a csv files, so it isn't lost during plugin reloads.
2012-07-05 02:31:53 -03:00
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
1e92a7002a
debug line I forgot to delete.
2012-07-04 21:21:46 -03:00
Elián Hanisch
929ead6611
add an extra test.
2012-07-04 19:52:20 -03:00
Elián Hanisch
011a0859a0
refactored readTimeDelta function.
2012-07-04 19:49:38 -03:00
Elián Hanisch
30c78107af
added FuzzyDict class, gives a more flexible matching of the time units.
2012-07-04 19:36:19 -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
tsimpson
fcbe5e92ec
Fix an issue where creating factoids that contain '>' or '|' could be eithe fail, or be interpreted as a redirection
2012-05-10 13:43:25 +01:00
tsimpson
a3027d3eea
actually fix number of string format arguments
2012-04-12 21:03:02 +01:00
tsimpson
03ce743951
fix number of string format arguments
2012-04-12 20:49:50 +01:00
tsimpson
a321713489
try a fix for lp bug #980202
2012-04-12 20:45:02 +01:00
tsimpson
72bbcdc34b
Workaround translations in apt-cache
2012-04-11 00:48:30 +01:00
tsimpson
f0d7e799d1
Merge ubottu Bugtracker with bzr.
...
Treat the Architecture key from apt-cache as a list, rather than a single string.
2012-04-10 14:05:29 +01:00
tsimpson
3d087845f1
Update PackageInfo scripts to be a little more useful and robust.
...
Also, in a break from character, I added some documentation.
2012-04-09 17:28:49 +01:00
Elián Hanisch
c5cf91187a
Encyclopedia: add testcase for requests.
2012-01-30 00:10:38 -03:00
Elián Hanisch
db4af03f78
Encyclopedia: clarify the help text of the 'editchannel' option
2012-01-29 23:42:11 -03:00
Elián Hanisch
c59d11c308
Fix searching in only bans, or only mutes.
...
We can't use LIMIT and OFFSET if we are going to filter mutes/bans later.
We have to get *all* bans and mutes, filter, and do the pagination manually.
2011-12-24 13:58:08 -03:00
Elián Hanisch
9c4c948a7f
print pagination links at the bottom of the page.
...
highlight the current page between []
2011-12-22 21:03:33 -03:00
Elián Hanisch
7f104934ab
fix the bans counter, it wasn't updated after filtering mutes.
2011-12-22 20:55:20 -03:00
Elián Hanisch
aa88d5529e
fix searching only mutes and add option for removed ones.
2011-12-22 20:52:37 -03:00
Elián Hanisch
4f8d1d1916
fix typos.
2011-12-22 19:36:58 -03:00
Terence Simpson
fb7f9c7acf
Added log.tmpl
2011-12-21 17:01:41 +00:00
Terence Simpson
bb605749a5
Typo++
2011-12-21 16:50:46 +00:00
Terence Simpson
3c9161db65
* Update symlinks in the root.
...
* Bantracker/cgi/bans.cgi:
* Use action="" in forms, which default to whatever the current URL is
(without query or fragment).
* Make sure errors are printed to sys.stderr, so they show up in the
right pace.
* Added irc_network and irc_channel config options, so it's not
hard-coded.
* replace "X.has_key(Y)" with "Y in X", has_key is "depricated" and
removed in 3.x (forward planning)
* added isTrue() and isFalse() to test if a form value evaluates to
boolean.
* True or False, repectivly. Use these in isOn().
* If a bad regex is passed in the log view, show that it was an error.
* Wrap INSERT statements in a try block.
* Put the generation time in a (X)HTML comment.
* Bantracker/config.py: Add SQL to create INDEX.
* Bantracker/README.txt: Update with extra information on setting up the
web interface.
2011-12-21 16:38:39 +00:00
Elián Hanisch
e3669b4465
Don't show the last bans when the page is loaded, it takes a lot of time.
...
This is due to sqlite2, sqlite3 doesn't have this problem.
2011-11-07 19:13:43 -03:00
Elián Hanisch
9d69828d44
read config settings from 'bantracker.conf' so I don't have to edit the cgi script every bloody time I update it.
...
Also, handle errors more gracefully.
2011-11-07 18:29:16 -03:00
Elián Hanisch
0556d87d01
fix layout and other stuff, disable sorting since is broken.
2011-11-07 18:27:28 -03:00
Elián Hanisch
5583fc3f82
move everything to into a "cgi" dir.
...
Show the latest bans, paginate searches, so there's only 100 bans loaded at the time.
2011-11-06 22:36:36 -03:00
Elián Hanisch
583ea422d9
port changes from bantracker page.
2011-11-06 20:11:13 -03:00
Elián Hanisch
9d6dfd01f2
lets not hardcode "bans.cgi" in the page.
2011-11-06 09:52:17 -03:00
Elián Hanisch
838f807a3b
Sqlite 2 doesn't have a way of escaping '%', so we can't search in mutes, but we can filter them.
2011-11-06 09:44:53 -03:00
Elián Hanisch
e64b87fe89
add in the README about creating an INDEX for comments so it doesn't traverse
...
the whole table for each ban.
2011-11-05 20:34:21 -03:00
Elián Hanisch
af95f4d3e0
make bantracker page go faster, like, 10 times faster.
2011-11-05 20:33:33 -03:00
Elián Hanisch
2f5ae3eca8
suggesting a factoid forced a limit of 14 chars in factoid's name.
...
This caused problems with channel specific factoids, now the limit is 35.
2011-10-24 14:34:17 -03:00
Terence Simpson
0438d153da
Update supybot.plugins.Encyclopedia.cur* config defaults
2011-08-26 07:51:16 +01:00
Terence Simpson
bed505399f
Don't just give up if an SQL operation throws an error; try, try, try again... and then some
2011-08-26 07:48:13 +01:00
Terence Simpson
53451ef83f
Handle Launchpad duplicates better
2011-08-26 07:32:15 +01:00
Terence Simpson
a7f415defd
And I suck at typing
2011-08-04 13:37:23 +01:00
Terence Simpson
120035a5c1
$nick apparently was ubottu-specific, now it's in bzr
...
Also added $who which will be replaced with the callers nick
2011-08-04 13:30:34 +01:00
Elián Hanisch
4eeb6ddc7f
fix Encyclopedia testcases.
2011-08-03 18:33:46 -03:00
Elián Hanisch
ed91a8a426
bantracker: When joining a channel, discard the ban list for that channel.
2011-06-18 23:14:35 -03:00
Elián Hanisch
8d61d972fd
bantracker: remove an useless extra search
2011-06-18 22:43:43 -03:00