Commit Graph

53 Commits

Author SHA1 Message Date
Jeremy Fincher fdde2759df Reordered superclasses so the proper die() method is called. 2003-11-11 11:45:44 +00:00
Jeremy Fincher c50e27a278 Fixed bug #838900. 2003-11-10 23:39:44 +00:00
James Vega 9d8d47bbe7 Fix the @seen --user bug and add a test to keep it fixed 2003-11-10 16:02:17 +00:00
Jeremy Fincher 8f1329b20e Refactored a touch. 2003-11-10 15:26:55 +00:00
Jeremy Fincher 973cc66793 Didn't have a .users before the getUser. 2003-11-10 15:21:08 +00:00
Jeremy Fincher 64e664e0bc Converted to use Configurable instead of Toggleable. 2003-11-08 08:01:34 +00:00
Daniel DiPaolo e00852b5ce Updated wordstats to default to checking for a word first instead of a user in
the case where there's only one arg supplied.
2003-11-06 20:21:59 +00:00
Daniel DiPaolo 6ea38aeffc Changed wordstats to use accessor ircdb.users.getUser instead of accessing the
ircdb.users.users data structure directly.
2003-11-06 16:41:49 +00:00
Daniel DiPaolo adc9e0552d Overhauled 'wordstats' to handle a plethora of argument combinations and wrote
some naaaaaaaaasty tests to make sure they work as expected.
2003-11-06 06:41:04 +00:00
Jeremy Fincher 1a4780b854 Added an addword test and fixed the wordstats failures. 2003-11-05 07:59:44 +00:00
Jeremy Fincher 9e94295d34 Fixed possible raised KeyError. 2003-11-05 07:43:48 +00:00
Jeremy Fincher 71791ab60b Added wordstats and whatnot. 2003-11-05 06:09:17 +00:00
Jeremy Fincher d548447750 Moved Karma off into its own plugin. 2003-11-04 08:42:11 +00:00
Jeremy Fincher d816bc6a68 Added selfstats toggle; Fixed karma to be case-insensitive but case-preserving. 2003-11-02 18:59:06 +00:00
Daniel DiPaolo 15b18edc11 made karma case-insensitive 2003-10-31 21:03:35 +00:00
Jeremy Fincher 2a0687e46c Fixed AttributeError in seen. 2003-10-29 16:18:16 +00:00
Jeremy Fincher 2b68eb908f Make seen not error if it doesn't recognize the user. 2003-10-29 16:15:33 +00:00
Daniel DiPaolo bfdbda625a Changed karma pluralization to use utils.pluralize() and fixed the tests to
avoid erroring due to ambiguous commands for 'stats' (since 'User' is also
loaded for the tests)
2003-10-29 07:46:49 +00:00
Jeremy Fincher 5ae13a9422 Made the bot keep stats on himself. 2003-10-24 22:29:30 +00:00
Jeremy Fincher 68dd30cb8b Made stats default to the name of the person asking. 2003-10-23 20:59:51 +00:00
Jeremy Fincher e189603220 Fixed multiple-karma responses in the face of no results. 2003-10-22 03:40:00 +00:00
Jeremy Fincher 0ab3347567 Updated ChannelDB to use user ids instead of usernames. 2003-10-20 07:39:40 +00:00
Jeremy Fincher e760320ca0 Changed to use the repr of the last message. 2003-10-20 06:22:15 +00:00
Jeremy Fincher d307421665 Added QUIT statkeeping. 2003-10-16 13:34:02 +00:00
Jeremy Fincher e4c64ec2ca Made *everything* case-insensitive. 2003-10-14 05:54:11 +00:00
James Vega 84f931bb9f Lots of pylint cleanups 2003-10-11 21:03:02 +00:00
Jeremy Fincher bc3ec9f70c Fixed pluralization bug in stats command. 2003-10-09 19:20:50 +00:00
Jeremy Fincher fc24f3ded1 Made seen case-insensitive. 2003-10-09 06:43:58 +00:00
Jeremy Fincher 7b28caba1b Converted karma stuff to use addressedRegexps. 2003-10-09 05:08:18 +00:00
Jeremy Fincher de5202cc27 Bugfix. 2003-10-06 21:17:21 +00:00
Jeremy Fincher ec0de6431d Changed baseplugin not to require 'from baseplugin import *' because fix is now munging builtins. 2003-10-05 12:56:56 +00:00
Jeremy Fincher 2cd657c9a9 Made sure ChannelDBHandler is before callbacks.Privmsg* in the inheritance order so self.die() is ChannelDBHandler's and not callbacks.Privmsg*. 2003-10-05 04:41:49 +00:00
Jeremy Fincher 3af3b4c985 __all__'ed baseplugin.py, updated other plugins to reflect that. 2003-10-04 13:53:13 +00:00
Jeremy Fincher 32eb85e3c5 Fix for KeyError escaping from stats. 2003-10-02 00:43:38 +00:00
Jeremy Fincher de7da5abc1 Fixed --user to actually work. 2003-10-02 00:42:26 +00:00
Jeremy Fincher dcffc5df62 Minor change: names -> nicks in @seen help. 2003-10-02 00:24:36 +00:00
Jeremy Fincher 0e0dad2341 Added additional help for karma command. 2003-10-02 00:16:39 +00:00
Jeremy Fincher f9a7bf0609 getopt-ified seen to use nicks by default and users only if given the --user option. 2003-10-02 00:13:44 +00:00
Jeremy Fincher 1410d1af43 Added the ability to handle multiple karma items in one request, like Moobot. 2003-09-29 07:29:18 +00:00
Jeremy Fincher 41d266f207 Updated ircdb to have persistent user ids. 2003-09-12 20:06:58 +00:00
Jeremy Fincher e386518997 Fixed escaping KeyError and added test. 2003-09-09 07:57:49 +00:00
Jeremy Fincher 92b2d195b3 Made seen command handle actions better. 2003-09-02 06:19:58 +00:00
Jeremy Fincher 9d51e998b5 Added example strings. 2003-08-27 18:06:26 +00:00
Jeremy Fincher eb7b696ce9 Made increase/decrease karma stuff work more like moobot (i.e., require a prefixchar and disallow spaces) 2003-08-25 07:24:11 +00:00
Jeremy Fincher 98b0acb942 Made karma return the highest/lowest karmas when given no arguments. 2003-08-24 21:51:20 +00:00
Jeremy Fincher 95f5abdda4 Made sure no prefixchars got into the karma table. 2003-08-22 22:59:28 +00:00
Jeremy Fincher ca646716b1 Removed spaces at the end of lines. 2003-08-20 16:26:23 +00:00
James Vega edf695aaad Fixed the karma (++/--) regexes 2003-08-19 22:06:07 +00:00
Jeremy Fincher 44d4c98dc7 Had to do a map(int, ...) thing because sqlite sometimes sucks at that kind of thing. 2003-08-17 06:22:01 +00:00
Jeremy Fincher 5cacbfb18a Wrong pluralization in karma. 2003-08-15 02:56:29 +00:00