Commit Graph

656 Commits

Author SHA1 Message Date
Jeremy Fincher
1d70b27b79 Added a die method. 2003-09-04 21:36:01 +00:00
Jeremy Fincher
f65829b768 Moved several things from fix.py to utils.py. 2003-09-04 20:42:37 +00:00
Jeremy Fincher
fff4a7d864 Made a set of the dbs that responded so each db only gets listed once. 2003-09-04 17:17:03 +00:00
Jeremy Fincher
9a2f80ae7b Forgot to commit from chemistry. 2003-09-04 17:13:13 +00:00
Jeremy Fincher
062231bb4b Added code to allow removal of all factoids associated with a given key. 2003-09-04 12:14:12 +00:00
Jeremy Fincher
dab57f3080 Fixed bug #800165. 2003-09-04 12:08:02 +00:00
Jeremy Fincher
3fb97984dc Removed the crazy topicPrefix stuff, it was pretty useless. 2003-09-03 20:41:28 +00:00
Jeremy Fincher
d0b7d5906f <Strike|work@oftc> I like the extraneous '.' on the end of the factoids. 2003-09-03 20:29:04 +00:00
Jeremy Fincher
f719009e1d Fixed something, although by now I forget what it was. Ah, the doTopic stuff. Yeah, I fixed that. 2003-09-03 20:00:54 +00:00
Jeremy Fincher
339375bc42 Made to work again. 2003-09-03 18:45:29 +00:00
Jeremy Fincher
fa878a9289 Fixed bug in doKick. 2003-09-03 18:45:17 +00:00
Jeremy Fincher
dfb1b26333 Added a doKick. 2003-09-03 18:42:52 +00:00
Jeremy Fincher
2e23c68afb Just chop off the extra if everything is too big; also allow specification of the dictionary. 2003-09-03 18:16:06 +00:00
Jeremy Fincher
56e6fbd21c There is no more BasePlugin. 2003-09-03 17:50:32 +00:00
Jeremy Fincher
4200b4a4a7 Updated doJoin to use utils.nItems and made it doPrivmsg instead. 2003-09-03 17:43:06 +00:00
Jeremy Fincher
0791d9cbea Changed last/lastfrom to the new method as per RFE 798374. 2003-09-03 17:18:38 +00:00
Jeremy Fincher
67d5465329 Changed an if to an elif in lasturl. 2003-09-03 17:03:38 +00:00
Jeremy Fincher
1da0f301f5 Small change in order of sortBy and shrinkList. 2003-09-03 14:26:25 +00:00
Jeremy Fincher
c98a25d6a2 Oops, forgot the '% word' 2003-09-03 12:21:56 +00:00
Jeremy Fincher
fd57203a67 Changed a something to an anything and looped until a valid key is given in configure. 2003-09-03 09:45:11 +00:00
Jeremy Fincher
5857a17f88 Added dict command. 2003-09-03 09:38:17 +00:00
Jeremy Fincher
7bbb893662 Fixed bug where 'alias punish lart ' would make punish raise a 'cannot nest' error. 2003-09-02 19:51:04 +00:00
Jeremy Fincher
236582f5e9 Changed a popen2 to popen4. 2003-09-02 08:09:58 +00:00
Jeremy Fincher
9b2a114d0c Changed the name of the uptimeEnder function so it shows up more clearly in atexit._exithandlers. 2003-09-02 08:08:54 +00:00
Jeremy Fincher
92b2d195b3 Made seen command handle actions better. 2003-09-02 06:19:58 +00:00
Jeremy Fincher
a846928596 Added wtf command. 2003-09-01 18:41:16 +00:00
Jeremy Fincher
ee8deced50 Cosmetic; semicolon instead of comma. 2003-09-01 08:46:14 +00:00
Jeremy Fincher
3fd04637af Attempt to solve the atexit-closed-database problem. 2003-09-01 08:40:41 +00:00
Jeremy Fincher
8b1a47b295 Attempt to solve the atexit-closed-database problem. 2003-09-01 08:38:25 +00:00
Jeremy Fincher
6c81eb9084 Made 'import this' not print. 2003-09-01 08:05:14 +00:00
James Vega
862489d205 Modified a docstring 2003-09-01 07:44:08 +00:00
James Vega
aa9f8a997e Added new lart/praise functionality. Now accepts a reason for larting/praising something 2003-09-01 06:11:02 +00:00
Jeremy Fincher
44972da513 Cleaned up makeDb. 2003-09-01 05:51:32 +00:00
Jeremy Fincher
30d3747f1d Added utils.pluralize. 2003-09-01 05:42:35 +00:00
James Vega
01adb33deb Fix a typo 2003-09-01 05:03:27 +00:00
James Vega
0061e42c97 Added tableDict, tableExists() and createTables to clean up/fix makeDB() 2003-09-01 04:45:26 +00:00
James Vega
5c034ead98 Fixed the onStart load string to match the module's name change from NickServ to Services 2003-08-31 21:58:08 +00:00
James Vega
07d46283ef Fixed a missing parameter to an irc.error() call 2003-08-31 21:32:53 +00:00
Jeremy Fincher
488fd6dd32 Forgot self. 2003-08-31 08:43:56 +00:00
Jeremy Fincher
cc2689ddb8 Forgot to import world. 2003-08-31 08:42:51 +00:00
Jeremy Fincher
883287c261 Added bestuptime command. 2003-08-31 08:42:07 +00:00
Jeremy Fincher
c891592b59 Fixed bug in strlen where it didn't account for spaces. 2003-08-30 22:54:11 +00:00
Jeremy Fincher
35cbbf7717 Made RSS docstring more appropriate, now that help works with modules. 2003-08-30 19:53:53 +00:00
Jeremy Fincher
bf5d0aa30b Updated example. 2003-08-30 19:30:28 +00:00
Jeremy Fincher
7290221a90 Removed the title line from zen's _these. 2003-08-30 19:25:14 +00:00
Jeremy Fincher
36ecc4fcf6 Added zen command. 2003-08-30 19:23:34 +00:00
Jeremy Fincher
442392b5ba Guarded inserts into sys.path. 2003-08-30 19:20:08 +00:00
Jeremy Fincher
d0d95cd017 Fixed odd error in findAliasCommand. 2003-08-30 19:05:03 +00:00
Jeremy Fincher
5841566982 Docstrings updated. 2003-08-30 04:46:17 +00:00
Jeremy Fincher
dfc9f2f160 Finished change to Services. 2003-08-30 04:28:09 +00:00
Jeremy Fincher
97d5ee8ad4 Tyop 2003-08-30 04:15:57 +00:00
Jeremy Fincher
e623d2e4b6 Added docstring and guard for lasturls. 2003-08-30 02:40:03 +00:00
Jeremy Fincher
736d46cff3 Forgot to close the file object from urllib2.urlopen. 2003-08-30 02:35:28 +00:00
Jeremy Fincher
7911d0f0a3 Moved kernel over to Http as per the wishes of the kernel.org folx0rs. 2003-08-30 02:33:28 +00:00
Jeremy Fincher
8f40c90e0b Fixed new pluralization bug in cpustats. 2003-08-30 02:08:13 +00:00
Jeremy Fincher
f4fb779f9f Added docstrings. 2003-08-29 17:03:12 +00:00
James Vega
f70919f1a8 Added a missing import line 2003-08-29 14:02:14 +00:00
Jeremy Fincher
06f7fef11f Stupid missing import... 2003-08-29 13:38:07 +00:00
Jeremy Fincher
f87eb2e654 Tyop. 2003-08-29 08:16:29 +00:00
Jeremy Fincher
b2d7893959 Made self.channels an IrcSet. 2003-08-29 08:15:07 +00:00
Jeremy Fincher
feff6f77ce Added eightball command. 2003-08-29 07:49:11 +00:00
Jeremy Fincher
2e4c9439b9 Changed topicUnformatter regexp slightly and fixed shuffletopic so it wouldn't send a repeat topic. 2003-08-29 07:32:14 +00:00
Jeremy Fincher
89a0d12cce Added tracking of how many commands have been processed. 2003-08-29 07:08:03 +00:00
Jeremy Fincher
295c5d8411 Added example. 2003-08-29 07:01:05 +00:00
Jeremy Fincher
fcdcebf990 Changed the name of NickServ to Services. 2003-08-29 06:50:33 +00:00
Jeremy Fincher
2c2031e167 Made randomfactoid more useful and fixed a bug in unlearn. 2003-08-29 06:45:51 +00:00
Jeremy Fincher
60c598be87 Wrote tests and fixed lots of bugs and usability flaws. 2003-08-29 06:32:49 +00:00
Jeremy Fincher
37f88d5e21 Added more tests and the lasturls command (and --nolimit option to the lasturl command. 2003-08-29 00:40:28 +00:00
Jeremy Fincher
6d7e68fa71 Added tests, fixed the bugs the tests found. 2003-08-28 23:59:03 +00:00
Jeremy Fincher
b6b47b5d3f Added example string. 2003-08-28 23:11:43 +00:00
Jeremy Fincher
336108c736 Added example string. 2003-08-28 22:24:33 +00:00
Jeremy Fincher
83d587b8a3 Changed some bugs in configure. 2003-08-28 21:27:15 +00:00
Jeremy Fincher
f1d876288f Added module docstring. 2003-08-28 21:26:56 +00:00
Jeremy Fincher
740acc5d08 Brought up-to-date with current plugin template. 2003-08-28 17:56:48 +00:00
Jeremy Fincher
f4a057cf4b Changed binascii.hexlify to encode('hex_codec'). 2003-08-28 17:56:27 +00:00
Jeremy Fincher
2935c16d27 Added example string. 2003-08-28 17:55:01 +00:00
Jeremy Fincher
5860657194 Added 401 to the commands that result in a 'no user on this network' message for relaywhois. 2003-08-28 16:31:56 +00:00
Jeremy Fincher
aabd095239 Moved world.version to conf.version. 2003-08-28 13:59:07 +00:00
Jeremy Fincher
50d1b9ba76 Forgot stupid utils import. 2003-08-27 23:36:47 +00:00
Jeremy Fincher
d21d868b28 Added hexip command. 2003-08-27 22:43:29 +00:00
Jeremy Fincher
550f0fb3de Forgot return after irc.error and added test for non-existent location. 2003-08-27 22:30:48 +00:00
Jeremy Fincher
ce67b6ef5a Added better error reporting. 2003-08-27 22:27:58 +00:00
Jeremy Fincher
c8b09bd44d Added configure function and example and module docstring and more function documentation. 2003-08-27 18:18:41 +00:00
Jeremy Fincher
9d51e998b5 Added example strings. 2003-08-27 18:06:26 +00:00
Jeremy Fincher
b572562cb3 Added utils.wrapLines and wrapped the lines of each plugin's example. 2003-08-27 16:25:43 +00:00
Jeremy Fincher
575656992e Fixed bug in weather, added test for it; added example string. 2003-08-27 16:01:51 +00:00
Jeremy Fincher
bb1bdd2725 Added tell command. 2003-08-27 07:46:03 +00:00
Jeremy Fincher
9550971042 Added ability for commands to raise callbacks.CannotNest if they are not nestable. 2003-08-27 07:45:48 +00:00
Jeremy Fincher
f9fee97f5f Made channels description in relaywhois slightly more descriptive. 2003-08-27 04:56:08 +00:00
Jeremy Fincher
52dba88bd3 Made much more efficient. 2003-08-27 01:42:00 +00:00
Jeremy Fincher
6d8a9e9c23 Changed 'no notes' message to be more natural English. 2003-08-26 18:14:32 +00:00
Jeremy Fincher
8f33ff28bd Made --at option for lasturl be more natural with domains. 2003-08-26 18:14:13 +00:00
Jeremy Fincher
19a9804dee Added a test and fixed several bugs it found. 2003-08-26 18:10:17 +00:00
Jeremy Fincher
5491d97704 Gave a proper error message for a relaywhois is a nick that isn't online. 2003-08-26 17:55:30 +00:00
Jeremy Fincher
09c77aa234 Can catch re.error instead of sre_constants.error. 2003-08-26 17:08:46 +00:00
Jeremy Fincher
3dd176ab63 Updated a whole lot of stuff. 2003-08-26 17:07:37 +00:00
Jeremy Fincher
898b219871 Unified the ircs' histories, making lastfrom work correctly. 2003-08-26 16:40:31 +00:00
Jeremy Fincher
906b83f1ec Added example. 2003-08-26 12:45:08 +00:00
Jeremy Fincher
c9546934d5 Removed id number from randomurl output. 2003-08-26 11:54:24 +00:00
Jeremy Fincher
84c028c0dc Removed id number from randomurl output. 2003-08-26 11:52:42 +00:00
Jeremy Fincher
871d6858c0 Added an example and changed the regexp not to allow <> into the URL. 2003-08-26 11:39:18 +00:00
Jeremy Fincher
79b199cec1 Removed list of commands in module docstring. 2003-08-26 11:26:12 +00:00
Jeremy Fincher
0cf31453bc Fixed ugliness (tons of returns?) and SyntaxError (missing parenthese). 2003-08-26 11:25:43 +00:00
Jeremy Fincher
cfe4ce14a9 Fixed ugliness (tons of returns?) and SyntaxError (missing parenthese). 2003-08-26 11:24:06 +00:00
Jeremy Fincher
5289f6bc75 Renamed conf.timestampFormat to conf.logTimestampFormat and added conf.humanTimestampFormat. 2003-08-26 11:15:15 +00:00
Jeremy Fincher
b3976501ff Removed spurious blank line. 2003-08-25 20:13:48 +00:00
Jeremy Fincher
075af0967c Commented out some debug.printfs. 2003-08-25 20:13:20 +00:00
Jeremy Fincher
5eafec7121 Made morehelp better for dbadd. 2003-08-25 20:13:04 +00:00
Jeremy Fincher
7932c6078f Added example, and made dice commaAndify its numbers. 2003-08-25 20:12:21 +00:00
Jeremy Fincher
e30cf69ec1 Added privmsgs.thread, and so nuked ThreadedFunCommands (subsumed into FunCommands) 2003-08-25 19:34:25 +00:00
Jeremy Fincher
84959a1815 I can't even tell what this change is, but apparently there is one. 2003-08-25 17:48:03 +00:00
Jeremy Fincher
ad8159751f Added fortune command and some more tests. 2003-08-25 07:55:08 +00:00
Jeremy Fincher
56117a0662 Made the error message in the face of problems connecting much prettier. 2003-08-25 07:24:31 +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
a92798c9d8 Fixed relaywhois to not require the network if the relay is only relaying between two networks. Also fixed a possible later UnboundLocalError in a few places. 2003-08-25 06:48:28 +00:00
Jeremy Fincher
ebabf6112f Changed Candler to delete the database as well as commit/close on die() 2003-08-25 06:27:07 +00:00
Jeremy Fincher
18260e986d Removed arg, strsplit, and fixed re to handle s/// regexps too. 2003-08-25 06:25:50 +00:00
Jeremy Fincher
c9c77f92c2 Fixed mime/unmime and docstring. 2003-08-25 06:24:42 +00:00
Jeremy Fincher
3ae2f79919 Forgot to reply with actor stuff. 2003-08-25 05:19:27 +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
577e7517af Made the output of osuemail a little bit cleaner. 2003-08-24 20:58:11 +00:00
Jeremy Fincher
30711266a7 Added osubuilding command. 2003-08-23 14:12:04 +00:00
Jeremy Fincher
5536e2181d Added module docstrings and changed argument order of osuemail. 2003-08-23 13:05:41 +00:00
Jeremy Fincher
5b2cc92917 Weather now works. This is gotenks2's commit. 2003-08-23 13:00:24 +00:00
Jeremy Fincher
5234c730c1 Converted states to lower before checking for membership in the set. 2003-08-23 12:44:25 +00:00
Jeremy Fincher
98011fe099 Added docstring. 2003-08-23 12:40:35 +00:00
James Vega
63fafdcccb Added bwp's weather module 2003-08-23 12:40:30 +00:00
Jeremy Fincher
5769e4d4cf Updated ChannelDBHandler to always return a new database if self.threaded is True. 2003-08-23 12:38:58 +00:00
Jeremy Fincher
38e63c6e84 Fixed exceptions raised by relaywhois. 2003-08-23 12:12:04 +00:00
Jeremy Fincher
8b05ce6e1a Fixed inability to find out the specifics about 'die hard'. 2003-08-23 11:40:40 +00:00
Jeremy Fincher
57b0c23a79 Added strlen command. 2003-08-23 11:34:13 +00:00
Jeremy Fincher
320f1d26b7 Made imdb handle people properly. 2003-08-23 08:52:42 +00:00
Jeremy Fincher
f35da83b1b Added rating to imdb output. 2003-08-23 08:35:18 +00:00
Jeremy Fincher
5d554a5c3b Initial checkin. 2003-08-23 08:26:51 +00:00
Jeremy Fincher
17478daca2 Began some swithover to the new method; mostly I just needed to try a commit. 2003-08-23 06:07:20 +00:00
Jeremy Fincher
3fe81ebdcb Added docstring and configure function. 2003-08-23 05:55:20 +00:00
James Vega
b86205ae8b Changed out some try blocks for if/else 2003-08-23 05:21:45 +00:00
Jeremy Fincher
57cc6615c4 Should be able to reload Relay module now too. 2003-08-23 05:04:41 +00:00
Jeremy Fincher
147d5cf6da Finally got the persistent configuration working with the Relay module (though don't try to reload it :)). 2003-08-23 04:42:04 +00:00
Jeremy Fincher
9d20105689 Fixed grouping of regexp. 2003-08-23 04:08:42 +00:00
Jeremy Fincher
05eabee767 Anchored a regexp and fixed a bug or two. 2003-08-22 23:00:10 +00:00
Jeremy Fincher
95f5abdda4 Made sure no prefixchars got into the karma table. 2003-08-22 22:59:28 +00:00
Jeremy Fincher
1342a76b95 Removed some debug.printfs. 2003-08-22 22:58:50 +00:00
James Vega
3c2ce0164a Added support for: created by, requested by, # requests to lart/praise/excuse/insult related functions
Added more error checking
Added a simple pluralizer
Added tests to stress lart/praise/excuse/insult portions of FunDB
2003-08-22 21:34:33 +00:00
Jeremy Fincher
436dc54ac3 Added configuration question for color. 2003-08-22 20:58:58 +00:00
James Vega
11c7124203 Added notification of which record number was added when adddb is called. 2003-08-22 08:10:58 +00:00
James Vega
52fab17e92 Added docstrings for ignore 2003-08-22 07:07:15 +00:00
James Vega
0b6fce1e06 Replaced the last of the specific functions with the general getdb.
Fixed some sql statements and cleaned up some responses.
2003-08-22 07:04:47 +00:00
Jeremy Fincher
c413261a3b Fixed crazy quoting bug. 2003-08-22 06:45:10 +00:00
James Vega
9b3faa1982 Removed some extraneous escaping of quotes and switched _tables from a list to a set. 2003-08-22 06:08:55 +00:00