Commit Graph

481 Commits

Author SHA1 Message Date
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
Elián Hanisch a9a111b8e6 Bantracker: Don't duplicate bans if for some reason the bot request a ban list.
Only sort bans when the ban list is over.
2011-06-18 22:39:16 -03:00
Elián Hanisch af068e2f91 Bantracker: when unbanning, if there was a problem reading the db,
bt would fail to remove the ban from self.bans.
2011-06-18 22:32:04 -03:00
Elián Hanisch 0a435b668c Bantracker: don't re-add bans that are out of sync into self.bans 2011-06-18 16:27:51 -03:00
Terence Simpson af3c308926 Add IBugtracker::__str__() so error reporting is prettier 2011-06-17 19:21:04 +01:00
Elián Hanisch 62936a986c bantracker: forgot about extbans. 2011-05-31 19:55:38 -03:00
Elián Hanisch d0d7fe616a bantracker: HACK assume bans with exact mask are marks, so they won't get a review. 2011-05-31 19:43:45 -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 f71a3c9929 Bantracker: ignore reviews for bans with a #ubuntu-read-topic forward. 2011-05-31 03:15:58 -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 fd36bffcc0 (large commit, see bazaar log)
[Bantracker]
 * Less spaces in README.txt
 * Remove mention of table 'users' in README.txt
 * Add more detail on how to create the bans database in README.txt
 * Add note about supybot-wizard creating the initial database in README.txt
 * Don't hard-code default values in config.py:configure()
 * Tweak config.py
 * Clean up bans.cgi a bit

[Bugtracker]
 * Comment-out obsolete "bug reporting" variables in config.py
 * Update README.txt and remove "bug reporting" stuff, also remove extraneous license info
 * Comment-out obsolete "bug reporting" code
 * Don't import imaplib

[Encyclopedia]
 * Don't hard-code default values in config.py:configure()
 * Check for 'owner' capability before checking if the hostmask is ignored in plugin.py:checkIgnored()
 * Clean up README.txt

[PackageInfo]
 * Don't hard-code default values in config.py:configure()
 * Update default distributions in config.py:configure()
 * Update defaultRelease in config.py 
 * Update README.txt

* Add a few docstrings to commoncgi.py
* Update COPYING
* Update README.txt
2011-05-28 07:33:21 +01:00
Elián Hanisch 6fe55f7eb1 merge i-am-only-a-bot-reply branch 2011-05-09 18:45:21 -03:00
Andrea Corbellini a6f91c2dad Pass prefixNick=True. 2011-05-09 14:20:39 +02:00
Andrea Corbellini ad21468aec When a user tries to speak with the bot, reply to him, so the message doesn't get lost. 2011-05-08 18:27:51 +02:00
Terence Simpson 101aef49b3 $%"%* I, apparently, suck 2011-04-19 18:16:00 +01:00
Terence Simpson 507a7f0e0e [PackageInfo] Make sure to strip '>' off before splitting the nick from redirect, or redirect will fail 2011-04-19 18:13:00 +01:00
Terence Simpson 2a4663d09d release can be None in __getRelease 2011-04-19 18:08:10 +01:00
Terence Simpson e1b7f6304d [PackageInfo] Handle the pipe character correctly and limit redirect (>) to 1 nick only
(lp: #764217)
2011-04-19 18:05:48 +01:00
Terence Simpson 6b3e58d19d Revert to r238 2011-04-19 17:50:46 +01:00
Terence Simpson 3e389ccfd8 [PackageInfo] Handle the pipe character correctly and limit redirect (>) to 1 nick only 2011-04-19 17:38:22 +01:00
Terence Simpson 23b38f5352 Strengthen flood protection
Remove duplicate bugs numbers before processing them
IBugtracker is now comparable by URLs, rather than by instance ID. This allows better flood protection
Check for repeats in is_ok() before calling the tracker plugin, we don't want to flood the tracker
2011-04-04 08:03:22 +01:00
Terence Simpson 5758a266a0 pad.lv actually works now 2011-03-29 20:40:53 +01:00
Terence Simpson 2ee7815190 Add support for pad.lv
Filter out unlikely bug numbers for the "ubuntu" tracker
Try to be a bit smarter about which launchpad.net URLs are bug URL
2011-03-29 20:12:08 +01:00
Elián Hanisch 0d5c8e00cf fix typo: "delated" -> "deleted" 2011-03-24 19:55:50 -03:00
Terence Simpson 06813cf920 Also don't resolve aliases in raw mode 2011-03-21 09:54:31 +00:00
Terence Simpson ea6e9a4fe4 Include deleted factoids in 'raw' mode 2011-03-21 09:16:53 +00:00
Terence Simpson 928fc13794 Make sure Bantracker/Launchpad raises a BugNotFoundError 2011-03-17 20:56:42 +00:00
Terence Simpson 8bd3a656d5 Parse pad.lv bug URLs for Launchpad (lp: #736378) 2011-03-17 01:16:58 +00:00
Terence Simpson 6511b98454 In all that, I made 1 typo, and only a missing comma at that. 2011-03-12 17:43:35 +00:00
Terence Simpson 0ded75a6ae Update Launchpad statuses and move to class instances
Disable sf.net in the right place 
_sort() in get_bug_new() moved to a class method
instance method _sort() moved to class method _old_sort()
improve _sort (prefiously under get_bug_new) error handling
Added tag "#Depricated" by depricated class Launchpad methods
class Launchpad uses the "production" service alias
Log an exception in Launchpad.__init__ when accessing the API fails
Removed some commented-out code
Added 'ubottu' to the list of trackers (as an alias for LP)
2011-03-12 17:35:09 +00:00
Terence Simpson dd3c9627e7 Don't wrap Bugtracker.turlSnarfer in supybot.commands.urlSnarfer, messing with threads is unpleasant 2011-03-08 00:07:02 +00:00