Jeremy Fincher
42ce8c33a6
Swapped the argument order for utils.{pluralize,nItems}
2003-12-12 15:41:33 +00:00
Jeremy Fincher
3398f1a819
Made the error message better when people try to run a plugin that requires sqlite and they don't have it.
2003-12-03 23:48:00 +00:00
Jeremy Fincher
2f7d2d7f61
Gave DBHandler a .die() method.
2003-12-02 22:40:33 +00:00
James Vega
9277d4113f
According to pysqlite 0.50.0 you can have a fractional number of items in a db
...
:(
2003-12-02 18:58:28 +00:00
Jeremy Fincher
48166f4895
Huge update to the logging infrastructure.
2003-11-26 18:21:12 +00:00
Daniel DiPaolo
8dc24b2d50
Implemented usability fix (RFE #849691 ) where if listkeys returns only one
...
factoid key, it should just return the value.
2003-11-26 16:20:57 +00:00
Jeremy Fincher
5f4a541fe1
Added __revision__ strings.
2003-11-25 08:23:47 +00:00
Jeremy Fincher
0e8891871f
Minor stylistic fixes (I thought there'd be more, but I solved another problem without messing with this plugin).
2003-11-22 02:10:13 +00:00
Jeremy Fincher
27ce432b64
Made ChannelDBHandler threadsafe, and wrote a DBHandler for threadsafe non-channel-based databases.
2003-11-15 07:56:27 +00:00
Jeremy Fincher
eb6e112f70
Changed some maps/filters to imaps/ifilters for efficiency reasons (I was bored, basically).
2003-11-15 04:37:04 +00:00
Jeremy Fincher
d4e5047ebf
Fixed bugs in option parsing.
2003-11-14 15:49:13 +00:00
Jeremy Fincher
2e0b225d0c
Changed the needed= keyword arg in privmsgs.getArgs to required=.
2003-11-11 13:20:06 +00:00
Jeremy Fincher
bb9cb5d67c
Fixed some bugs, tested some more and fixed those two. Boomshakalaka!
2003-11-10 22:43:19 +00:00
Jeremy Fincher
9dd2680a9f
Fix for bug #839053 (parens without bars not handled correctly).
2003-11-10 10:46:57 +00:00
Daniel DiPaolo
3f1296a858
Fixed some text to read a bit better. Still doesn't look quite perfect though
2003-11-06 21:22:13 +00:00
Jeremy Fincher
2a33262b9e
Converted to be somewhat clearer than _mostDict.
2003-11-06 21:10:47 +00:00
James Vega
5a6f3ee7bb
Removed the example strings until we figure out what to do with them
2003-11-06 20:42:27 +00:00
James Vega
ea81e966ff
ddipaolo suggested switching from a tuple to a dictionary to make things more
...
intuitive (if we even decide to keep this format)
2003-11-06 18:31:56 +00:00
James Vega
ac97573d92
Well, now @most has one set of commands that it will run, but it required a
...
big dictionary.
2003-11-06 18:19:41 +00:00
James Vega
a55193ea62
Added @most <popular|authored|recent> (RFE #829830 )
2003-11-06 17:24:49 +00:00
Daniel DiPaolo
cc94948d10
Fixed greedniess of a few regexes and did some associated fixes.
2003-11-03 06:25:02 +00:00
Daniel DiPaolo
0de26afa99
changed factoids to use irc.reply(..., action=True) instead of queueMsg
2003-11-03 03:23:00 +00:00
Daniel DiPaolo
96f299c10c
Included plugins.standardSubstitute in factoids parsing now
2003-11-02 23:45:31 +00:00
Daniel DiPaolo
82d2d8162a
Fixed a bug where addFactoid wasn't splitting on the first "is"
2003-11-01 22:08:52 +00:00
Daniel DiPaolo
0011fff94e
Changed all %d's to %s's
2003-10-29 22:05:53 +00:00
Daniel DiPaolo
f0b850118b
MoobotFactoids should be pretty dang close to finished now. Got the "_is_"
...
syntax working just fine.
2003-10-29 03:01:02 +00:00
Daniel DiPaolo
2527f47cb6
Punctuation ("?!") is now stripped from keys before insertion into the db
2003-10-28 15:30:43 +00:00
Daniel DiPaolo
084fe1854f
More MoobotFactoids/Dunno separation fun and fixes
2003-10-28 05:31:51 +00:00
Daniel DiPaolo
faea5a5909
Split out dunnos from MoobotFactoids (into Dunno.py) in anticipation of the
...
invalidCommand infrastructure addition.
2003-10-28 01:46:58 +00:00
Jeremy Fincher
660ba14e96
Fixed some failing test cases.
2003-10-24 11:03:43 +00:00
Daniel DiPaolo
c1ee1b8c10
Cosmetic fixes.
2003-10-24 06:11:16 +00:00
Daniel DiPaolo
051928efa5
Added locked_by back ... to stay, now admin/owner people can lock/unlock
...
factoids that they didn't create. So it'll be nice to be able to see just who
locked a factoid of yours.
2003-10-24 02:25:41 +00:00
Daniel DiPaolo
1b25a207bf
Made MoobotFactoids case insensitive, and added tests to make sure that
...
case-insensitivity works.
2003-10-24 01:03:18 +00:00
Daniel DiPaolo
aa05fc1a79
Made it so admins can unlock anyone's factoids.
2003-10-23 21:35:13 +00:00
Daniel DiPaolo
6cf0005abe
Put "prefixName=False" in a bunch of the irc.reply()s so that things like
...
dunnos wouldn't look stupid.
2003-10-22 16:38:46 +00:00
Daniel DiPaolo
93f19492ca
Could have sworn I committed this already... turns on globbing by default (I
...
think .. too lazy to diff and see if that's what changed)
2003-10-22 16:01:05 +00:00
Jeremy Fincher
f09928e5cd
Fixed RFE #827285 .
2003-10-21 23:21:32 +00:00
Jeremy Fincher
9cb41e6420
Made ordering in PrivmsgCommandAndRegexp depend on the list of regexp-methods.
2003-10-21 21:10:20 +00:00
Daniel DiPaolo
d959f84b73
Got most of the dunno stuff in place.
2003-10-21 15:44:17 +00:00
Jeremy Fincher
ab2bea589a
Changed the names of the src/ plugins.
2003-10-21 06:03:57 +00:00
Jeremy Fincher
c9e6f77c3a
Restored the original conf.replyWhenNotCommand value on die().
2003-10-20 03:43:18 +00:00
James Vega
b2dd349235
Fixed all the #! lines to be consistent and a couple formatting issues with
...
the copyright
2003-10-16 14:53:42 +00:00
Daniel DiPaolo
a63ee1e304
* Decided to ditch the "_is_" syntax. I never liked it and implementing it
...
may prove to be difficult here. It may find its way back in, but there's no
point in having it in there now when it doesn't work right anyway.
2003-10-16 05:39:15 +00:00
Daniel DiPaolo
aee5c6c18e
* Finished up MoobotFactoids, I think. Added delete, augmentFactoids (foo is
...
also bar), and replaceFactoids (no foo is bar), as well as cleaning up some
of the regexps that were there (we allow spaces in the factoids, dummy!), and
also made the addFactoids regexp more accomodating to other phrases with the
word "is" in them :) Also, updated the tests for it, of course.
2003-10-16 05:27:01 +00:00
Daniel DiPaolo
ea024def78
* Fixed some quoting issues in list*. Adopted the practice of repr()'ing all
...
factoid keys before displaying them (idea stolen from searchfactoids in
Factoids). Also fixed them in the tests as well as adding a test to insure
that it's done right.
* Added the listkeys and listvalues commands.
2003-10-16 03:51:53 +00:00
Daniel DiPaolo
ddfd7e10e1
* LOTS of updates to the MoobotFactoids test suite, parts of which aren't ready
...
yet, but the test targets should be pretty static from here on out, except
adding new tests.
* Fixed up lock and coded unlock in MoobotFactoids (actually, factored the
common code out into one helper function that each call).
* Added the changeFactoids (=~) portion.
* Changed the table structure again (should be the last time). Locked_by was
redundant if we're only going to let factoid creators lock/unlock. Removed
it.
2003-10-16 02:03:35 +00:00
Daniel DiPaolo
41f1cddbcf
* Fixed INSERT query in addFactoids to mirror the changes made in the table
...
structure a few revisions back (oops)
2003-10-14 16:00:50 +00:00
Daniel DiPaolo
3ae813674e
* adding MoobotFactoids stuff as per jemfinch's request - though it's not quite
...
done yet
2003-10-13 21:22:16 +00:00