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 |
|
Elián Hanisch
|
31a9820849
|
fix updatebt, it failed to recognize extbans, and inserted them again in
the db.
|
2010-04-03 21:11:22 -03:00 |
|
Elián Hanisch
|
deef5dbf37
|
merge with main
|
2010-04-03 20:06:29 -03:00 |
|
Elián Hanisch
|
b463ee3b26
|
fix: running @updatebt would trigger a request msg for each new ban.
added option for enable request msg, defaults to False
bot owners should run @config plugins.Bantracker.commentRequest True
|
2010-04-03 19:46:32 -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
|
75bf9e209c
|
refactor and removed some self.log calls
|
2010-04-03 01:57:08 -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
|
dda5154237
|
removed try: except: block
|
2010-04-03 00:26:20 -03:00 |
|
Elián Hanisch
|
fd4516f077
|
fixed testcases
|
2010-04-03 00:17:26 -03:00 |
|
Elián Hanisch
|
b0b823fef1
|
config rename:
Bantracker.commetRequest => Bantracker.request
Bantracker.reviewAfterTime => Bantracker.request.review
|
2010-04-02 23:43:26 -03:00 |
|
Elián Hanisch
|
fd55f019e1
|
remove our ReadOnly option, which was an ugly hack, and use PersistentCache instead
|
2010-04-02 18:32:19 -03:00 |
|
Elián Hanisch
|
9b0a5d4180
|
save pending reviews on close so we won't lose them
|
2010-04-02 17:28:43 -03:00 |
|
Elián Hanisch
|
155d1ae47d
|
banreview command
|
2010-04-02 14:03:44 -03:00 |
|
Elián Hanisch
|
8bb046e84c
|
refactoring, requested reviews now follow forward options, some fixes
|
2010-04-02 14:03:01 -03:00 |
|
Elián Hanisch
|
b31a266933
|
keep ban list sorted by time
|
2010-04-02 14:01:57 -03:00 |
|
Elián Hanisch
|
44b07e6c10
|
use case insensible dicts here
|
2010-04-02 14:01:07 -03:00 |
|
Elián Hanisch
|
fffc4b58ed
|
run reviewBans every 10min
|
2010-04-02 13:59:34 -03:00 |
|
Elián Hanisch
|
b82f1ae2bc
|
not use super or raise error, causes some problems
|
2010-04-02 13:51:49 -03:00 |
|
Elián Hanisch
|
621a739198
|
improved testcases
|
2010-04-01 17:52:53 -03:00 |
|
Elián Hanisch
|
e0c327cc0c
|
match operators by cloak/host instead of nick
|
2010-04-01 17:52:22 -03:00 |
|
Elián Hanisch
|
6ec87d68dd
|
more testcases for BanTracker
|
2010-04-01 16:34:59 -03:00 |
|
Elián Hanisch
|
62ee6cf346
|
skip mutes
|
2010-04-01 12:48:19 -03:00 |
|
Elián Hanisch
|
bfd6a055c1
|
complete string message
|
2010-04-01 12:47:56 -03:00 |
|
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 |
|