Commit Graph

186 Commits

Author SHA1 Message Date
Elián Hanisch a7447c0bef if not dabatase is set, db_run would return None and raise exception. fixed 2010-04-01 12:39:46 -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
Elián Hanisch 3dd2f09769 reviewAfterTime is now stored in seconds, but when setting the value the unit
is days.

This saves the user for calculating how many seconds a day is, while allowing
me to set times of some seconds for automatic testing.
2010-03-30 17:13:00 -03:00
Elián Hanisch e60e72a620 fix:
- self.name => self.name()
- syntax error
2010-03-30 16:22:10 -03:00
Elián Hanisch 6b3a33ce4c instead of sending reviews immediately, enqueue them and send then the
next time the op says something, that way not only we make sure op is online,
but active as well.
2010-03-30 14:56:35 -03:00
Elián Hanisch 5dfe161bac tweak reviewTime initialisation and comments++ 2010-03-30 14:02:53 -03:00
Elián Hanisch 7c042b4a79 use a config option for store when we last checked for ban review.
That way we can skip bans already reviewed.
2010-03-30 13:32:28 -03:00
Elián Hanisch 82a5cd7d08 repeating function for check if bans need a review 2010-03-30 08:47:16 -03:00
Terence Simpson 0cb8fc1fb7 Style touch-ups and code reuse 2010-03-29 09:02:17 +01:00
Elián Hanisch ae4ee8d666 show when and who last edited a factoid in the cgi page 2010-03-28 20:52:30 -03:00
Terence Simpson 298fe02fd9 Merge lp:~symphony/ubuntu-bots/bugfixes for bug #521516 2010-03-28 06:15:26 +01:00
Terence Simpson 7f5bcbbfca Don't convert NOTICEs into PRIVMSGs (LP: #539757) 2010-03-28 05:12:37 +01:00
Terence Simpson 39faf3143d * Use deque in Bantracker for logs
* Get "realIrc" object in __init__ of IRCLogin, rather than constantly generating a new object
2010-03-28 04:34:17 +01:00
Elián Hanisch 43485fdc0f new config option: commentRequest.type
For decide which events should trigger a comment request.
2010-03-17 07:14:07 -03:00
Elián Hanisch 5176697e2e little refactoring and tweaks
conf.supybot.plugins.Bantracker => Bantracker (this is sorter)
2010-03-16 21:46:18 -03:00
Elián Hanisch e087d47fc1 fix: nick matching wasn't really case insensible 2010-03-15 23:28:09 -03:00
Elián Hanisch 287038b1e3 cleaned a bit some config option names:
dontRequestComment => commentRequest.ignore
forwardRequest     => commentRequest.forward
forwardChannels    => commentRequest.forward.channels
2010-03-15 23:26:19 -03:00
Elián Hanisch 144291b933 In the case of quiets done by Chanserv, it would be nice to still remind
the op to comment on it, like sending a notice to #ubuntu-ops.
So two new options for this:

forwardRequest: list of nicks for which the request will be redirected
forwardChannels: list of channels where the redirected request will be send
2010-03-15 20:51:32 -03:00
Elián Hanisch bf737d510f tweak priv message so it displays the full command needed 2010-03-15 14:32:09 -03:00
Elián Hanisch c88cc2bbd9 new config option "dontRequestComment"
for prevent sending messages to specific ops, like floodbots.
2010-03-15 13:12:51 -03:00
Elián Hanisch fc99c36faf this looks like a typo: "real_%s" => "%s_real" 2010-03-14 11:16:39 -03:00
Elián Hanisch 8da46db266 catch assert if mask isn't a hostmask, like in realname bans 2010-03-14 10:11:35 -03:00
Elián Hanisch 09d8f38835 Implement private msg for ops requesting to comment his/her bans (LP: #521516) 2010-03-14 10:07:59 -03:00
Elián Hanisch c9fb43ab33 fix syntax error 2010-03-14 10:06:36 -03:00
Terence Simpson 5187c05a4b Add die() method to IRCLogin so if IRCLogin is unloaded, it will disable IDENTIFY-MSG 2010-02-20 10:31:13 +00:00
Terence Simpson 99a0d6ab9f Fix++ 2010-02-20 10:21:58 +00:00
Terence Simpson 9246b80c12 Fix++ 2010-02-19 19:11:10 +00:00
Terence Simpson f6b26f3408 Add a couple of debugging functions to IRCLogin 2010-02-19 19:04:45 +00:00
Terence Simpson b355b89f4a And the rest 2010-02-04 19:01:11 +00:00
Terence Simpson fcea1f944f Use hashlib rather than deprecated md5 module 2010-02-04 18:58:05 +00:00
Terence Simpson c375c9757e !info should work regardless of the number of spaces in the command... 2010-02-04 18:56:07 +00:00
Terence Simpson 75c51ddbc1 More -seven work, mostly on Bantracker, which probably needs a rewrite :( 2010-01-30 15:19:53 +00:00
Terence Simpson 2cf12cae3d Merge with lp:~tsimpson/ubuntu-bots/ircd-seven
* Fix typo s/Dalse/False/
2010-01-30 07:43:43 +00:00
Terence Simpson 568cc9588e Update description 2010-01-30 07:37:28 +00:00
Terence Simpson 4158d4ba45 Fix previous patch 2009-12-11 18:00:57 +00:00
Terence Simpson 6ffc89d007 BugFix: Bantracker does not parse multiple modes properly (LP: #495555)
Allow Bantracker to search bans by ID
2009-12-11 17:53:15 +00:00
Terence Simpson ac6fd47a8b Make sure to only call commands manually when supybot.defaultIgnore is True 2009-12-03 23:23:09 +00:00
Terence Simpson ecefe1de50 Fix++ 2009-12-03 23:18:07 +00:00
Terence Simpson af957954a1 Tweak regex for bugSnarfer in Bugtracker (LP: #148777) 2009-11-30 19:04:54 +00:00
Terence Simpson 562b0faf0f Update author/version/url info 2009-11-26 16:39:34 +00:00
Terence Simpson 07ef244648 Remove call to getUrl(), not implemented 2009-11-25 16:33:07 +00:00
Terence Simpson 5da62db6b0 add missing ')' 2009-11-22 22:44:07 +00:00
Terence Simpson 2aa2031d86 Add new value substitution code missing from last import from ubottu 2009-11-22 22:32:40 +00:00
Terence Simpson 24a8f2041f Add 'privateNotFound' channel config option to Encyclopedia, if set to True the bot will /msg the 'notfoundmsg' rather than send it in the channel 2009-11-16 16:43:34 +00:00
Terence Simpson 5a0e1f597f Modify IRCLogin to support bot CAPAB and CAP commands 2009-11-11 14:53:30 +00:00
Terence Simpson 7274384481 Fix config 2009-11-09 21:06:58 +00:00
Terence Simpson 1bfd6d812f Update for Freenode ircd-seven 2009-11-09 19:25:59 +00:00
Terence Simpson f96f9c5bc3 Fix the doubling of commands when supybot.defaultIgnore is true and a user is identified 2009-11-07 08:50:16 +00:00
Terence Simpson 31c41dac21 Bantracker: add some convenience functions to Ban class
IRCLogin: Make the Launchpad team configurable
2009-11-04 03:50:49 +00:00