Commit Graph

508 Commits

Author SHA1 Message Date
Arvind S Raj 8d1c3151b8 Typo in bugtracker corrected 2010-06-02 19:39:45 +05:30
Terence Simpson 55ca23f755 Make configure() do something for all plugins, also fix a couple of things from r197-203 2010-05-29 14:36:43 +01:00
Terence Simpson 3676ea1efd Added a README.txt containing some basic information on setting up a clone 2010-05-29 12:53:29 +01:00
Terence Simpson ec4399ea8b really fix this time 2010-05-29 00:58:49 +01:00
Terence Simpson 5082202a3e fix++ 2010-05-29 00:55:07 +01:00
Terence Simpson f3de8f84a6 Make a custom anything() function that follows the same form as every other function in supybot.questions, because apparently no one thought this was a good idea... 2010-05-28 23:51:28 +01:00
Terence Simpson 15d0b1cbda s/replaychannel/relaychannel/ Thanks FireCrotch
(PS: r200 :)
2010-05-28 23:35:53 +01:00
Elián Hanisch c0ba4ab1ab fix typo 2010-05-24 17:27:28 -03:00
Terence Simpson 7e874dc706 Merge++ 2010-05-24 14:50:16 +01: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 22b45065a3 Terence's commits 2010-05-22 20:48:33 -03:00
Elián Hanisch 99530e7211 simple testcase for Encyclopedia
getting this to work tired me and I don't feel like adding more tests.
2010-05-22 20:41:05 -03:00
Elián Hanisch 56cd566609 disable threadding:
threadded plugin + sqlite = locking issues
2010-05-22 20:39:25 -03:00
Terence Simpson b6465cc8bb Don't fetch bans/nicks for channels where Bantracker is disabled 2010-05-22 09:11:37 +01:00
Terence Simpson 9f6e09e84b Fix0r - parenthesis mismatch 2010-05-22 06:41:35 +01:00
Terence Simpson c002447554 Remove duplicate code in class Launchpad 2010-05-19 14:58:22 +01:00
Terence Simpson 5fa8e3992b typos ftw 2010-05-19 14:56:46 +01:00
Terence Simpson 842d9857d3 Add option to show optional "extended" bug information 2010-05-19 14:55:10 +01:00
Terence Simpson 0320609071 use /usr/bin/env for #! lines 2010-05-19 14:11:16 +01:00
Elián Hanisch 95618780f4 syncing for the first time fails because it tries to backup a file that
doesn't exist yet. Since there's nothing to backup, ignore this error and continue.
2010-05-17 10:46:35 -03:00
Elián Hanisch a162404aec Bantracker: try to re-connect to the db if for some reason it didn't connect
or got closed.
2010-05-14 13:17:40 -03:00
Elián Hanisch 42a64c4c18 Bantracker: Don't enqueue ban reviews already in queue. Testcase updated. 2010-05-14 00:09:50 -03:00
Terence Simpson 2097ece8c5 Remove all of the user updating code from IRCLogin, it's just broken and wrong
Remove IRCLogin/lp.py
2010-04-30 13:50:43 +01:00
Terence Simpson 1872290f7f Ensure IDENTIFY-MSG is enabled if for some reason it gets disabled 2010-04-28 13:09:12 +01:00
Terence Simpson 2ce80148f2 * Make sure the login command isn't processed twice
* Call doPrivmsg with a ReplyIrcProxy object
2010-04-28 12:45:59 +01:00
Terence Simpson 95317d684c Make '/msg <bot> login' work as expected 2010-04-28 11:07:36 +01:00
Elián Hanisch e5801cf105 merge with devel 2010-04-26 17:37:37 -03:00
Elián Hanisch bb6c417989 fix error handling on cursor.execute
the previous code seemed to try 5 times before giving up, except that
it wasn't inside any loop, so it only tried once and there was no error msg.
Now at least log that there was an error.
2010-04-20 10:27:46 -03:00
Terence Simpson 9d99263232 Fix some IndexErrors 2010-04-20 12:27:35 +01:00
Terence Simpson df10ce98f8 Make Bugtracker use the Launchpad API if launchpadlib is installed.
Support for the old (/+text) method will be dropped in the future.
2010-04-20 11:33:26 +01:00
Terence Simpson 95c715b339 "!info [packagename]" doesn't work in PM w/o being logged in" (LP: #314302) again 2010-04-19 03:22:38 +01:00
Terence Simpson f7ed5b4b2c Fix typo in PackageInfo (LP: #563846):
* Incorporate patch from Michael Lustfield <michael@profarius.com>
2010-04-15 19:43:41 +01:00
Terence Simpson 7fe0ec2c10 Replace hard coded prefix-chars and command names with config values and auto-generated lists 2010-04-15 07:29:20 +01:00
Terence Simpson 15db4c8201 Actually reply to !info and !find when in /msg 2010-04-15 03:08:17 +01:00
Terence Simpson 2a0e6a1f1a fix check_auth 2010-04-13 05:11:15 +01: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
Terence Simpson 5c6c32608e And fix it again :) 2010-04-13 02:38:24 +01:00
Terence Simpson f757b715bd Add flood protection to PackageInfo (LP: #561908)
update copyright stuff.
2010-04-13 02:12:54 +01: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
Terence Simpson 02f95832db Don't recognise /remove as a kick and fix hostmaskPatternEqual for 'new' ban-forward syntax 2010-04-13 01:24:45 +01:00
Elián Hanisch c942c3e80d don't use deque objects, since maxlen keyword is only in python 2.6 2010-04-09 12:10:08 -03:00
Terence Simpson 0d9101daab change bugSnarfer() regexp to allow for trailing ':' in tracker names,
this allows the bot to snarf bugs in a changelog format. Eg: (tracker: #nnnnn)
2010-04-08 17:51:29 +01:00
Elián Hanisch 8612e2291f implement requesting a ban review after a configured time and add some basic testcases
bot owners note that config group 'commentRequest' is now 'request'
request.ignore config now defaults to "FloodBot? FloodBotK? ChanServ"
2010-04-06 21:36:50 -03:00
Elián Hanisch f1b72a7f57 forgot to remove this 2010-04-04 01:39:50 -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 b6887f5ede config help review 2010-04-03 23:53:05 -03:00
Elián Hanisch ca60ba5aa2 refactor 2010-04-03 23:48:54 -03:00
Elián Hanisch 8e05e8748a refactoring, and fix: config option request.review must be global, since
the review timestamp isn't channel specific
2010-04-03 21:55:59 -03:00