Commit Graph

780 Commits

Author SHA1 Message Date
Jeremy Fincher
a6d71770c9 Added a try/finally statement to the addMsg in __call__ so lastMsg will still get updated if it raises an exception. 2003-09-23 16:08:05 +00:00
Jeremy Fincher
20e5bdb50d Added a try/finally statement to the addMsg in __call__ so lastMsg will still get updated if it raises an exception. 2003-09-23 16:01:04 +00:00
Jeremy Fincher
e4143b467a Added a bit to the morehelp for calc to explain floating point inaccuracies. 2003-09-23 15:42:01 +00:00
Jeremy Fincher
d57c173598 Tiny update to the lithp command. 2003-09-22 22:36:23 +00:00
Jeremy Fincher
b4b2b2b883 Added --with option to quote command. 2003-09-22 22:11:05 +00:00
Jeremy Fincher
e40183f1e5 Fixed stupid verisign bug. 2003-09-22 18:00:16 +00:00
Jeremy Fincher
3e28059c9e Fixed bug in genre pluralization. 2003-09-22 17:32:12 +00:00
Jeremy Fincher
b1b00401ed Changed inFilter to __call__, since it doesn't do any filtering. 2003-09-22 11:17:10 +00:00
Jeremy Fincher
41d3039c68 Removed some debugging stuff that never should've been committed. 2003-09-22 11:16:41 +00:00
Jeremy Fincher
3a329b04f9 Added the uptimeEnder to world.flushers instead of just running it atexit. 2003-09-22 09:55:00 +00:00
Jeremy Fincher
f137b21dcf Added extra logging to Enforcer in the case where it's not started. 2003-09-22 02:46:36 +00:00
Jeremy Fincher
fd568a7f48 Made echo not prefixName. 2003-09-19 17:25:38 +00:00
Jeremy Fincher
287c9028a5 Forgot a return after an irc.error. 2003-09-18 15:45:43 +00:00
Jeremy Fincher
3af8f1c790 Added private and action keywords to IrcObjectProxy.reply and converted FunDB to use them. 2003-09-18 07:26:21 +00:00
Jeremy Fincher
ab302e5742 Oops, left a random.choice with the arguments of a random.shuffle. 2003-09-18 05:58:24 +00:00
Jeremy Fincher
fad77c9545 Forgot to change a topicget to a gettopic. 2003-09-17 22:49:00 +00:00
Jeremy Fincher
d227111b0c Added privmsgs.name, privmsgs.channel, and privmsgs.checkChannelCapability. Converted the Topic plugin to use some of them. 2003-09-17 22:38:03 +00:00
Jeremy Fincher
fd1aacbd64 Fixed snarfer for drawn games. 2003-09-17 21:31:04 +00:00
James Vega
b95985c3aa dbchange now updates the added_by field 2003-09-16 18:53:09 +00:00
James Vega
292bb2550e Removed requested_by and use_count from {lart,excuse,insult,praise} tables 2003-09-16 18:11:16 +00:00
Jeremy Fincher
9ed2dcbc31 Fixed bug #807245, changetopic reorders topics. 2003-09-16 18:08:33 +00:00
James Vega
7719b8dad3 Fixed a couple typos in dbinfo 2003-09-16 17:16:11 +00:00
James Vega
32b0b65475 plugins/FunDB.py: added support for dbchange
test/test_FunDB.py: added testing for dbchange
2003-09-16 16:49:17 +00:00
Daniel DiPaolo
467688de74 A bit of cleanup work, mostly on the python zegrep portion of debfile 2003-09-15 02:45:39 +00:00
Jeremy Fincher
679b8fbaee Fixed output in the face of a single responding dictionary. 2003-09-14 07:39:39 +00:00
Daniel DiPaolo
3da65af7c8 * Beginnings of news stuff, yay 2003-09-14 07:38:26 +00:00
Jeremy Fincher
e729b430b6 Updated for the new ircdb.users. 2003-09-14 02:43:17 +00:00
Jeremy Fincher
644fd692fa Changed random.sample(seq, 1)[0] to random.choice. Completely forgot the name of the choice function. 2003-09-14 01:18:50 +00:00
Jeremy Fincher
b497acbc43 Removed the URL from the snarfer output. 2003-09-13 22:32:32 +00:00
Jeremy Fincher
9f51a69d96 Moved calc and rpn from FunCommands to the new Math plugin. 2003-09-13 15:00:22 +00:00
Jeremy Fincher
d2ec31c45b Fixed bug in removeAlias that it wouldn't clear the frozen set. 2003-09-13 14:46:03 +00:00
Jeremy Fincher
358533b335 Removed deepthought command now that we have a supyfact for it. 2003-09-13 13:39:41 +00:00
Jeremy Fincher
caa099dfc1 Added RFE #804955, lookup should return a random key: value if not given an argument. 2003-09-13 13:33:49 +00:00
Jeremy Fincher
fb60da149b Added ability to specify optional arguments in aliases with @\d+. 2003-09-13 13:30:33 +00:00
Jeremy Fincher
41d266f207 Updated ircdb to have persistent user ids. 2003-09-12 20:06:58 +00:00
James Vega
f524ec0ac9 plugins/Quotes.py: addquote now announces the id of the new quote
test/test_Quotes.py: updated to reflect change in plugin
2003-09-12 13:23:09 +00:00
James Vega
91274d3f54 addquote now returns the number id of the quote that was added, i.e. Quote #4 added 2003-09-12 10:54:25 +00:00
Daniel DiPaolo
47ea9b809f * Fixed Debian's debfile command to work properly 2003-09-11 18:46:17 +00:00
Jeremy Fincher
9eb08fa205 Removed length restriction from deepthought. 2003-09-11 18:39:47 +00:00
Jeremy Fincher
7dfeb8d486 Added necessary imports to configure. 2003-09-11 12:32:39 +00:00
Jeremy Fincher
60dc66927d Added special handling in the case where the bot is kicked from the channel. 2003-09-11 10:27:49 +00:00
Jeremy Fincher
bafc23f536 Added configure questions. 2003-09-11 10:05:24 +00:00
Jeremy Fincher
e6556ec101 Removed zipcode stuff. 2003-09-11 09:56:59 +00:00
Jeremy Fincher
99f88bd20a Added DCC CHAT support. 2003-09-11 06:43:49 +00:00
Jeremy Fincher
77ff4f8036 Help updates, updates for metagoogle, and a change in bolding. 2003-09-10 22:29:34 +00:00
Jeremy Fincher
7605f6512e Initial checkin. 2003-09-10 22:22:50 +00:00
Jeremy Fincher
273e4a7a0c Added removeAlias method for easy access from within other plugins. 2003-09-10 21:15:09 +00:00
Jeremy Fincher
dca69510f3 Extracted alias-adding functionality out into a function usable from within other plugins. 2003-09-10 20:25:15 +00:00
Jeremy Fincher
d46f6494e7 Made --url into --fancy and made simple URL responses the default. 2003-09-10 18:15:28 +00:00
Jeremy Fincher
ffefdf1ab7 Added new pipe syntax to check for recursive aliases. 2003-09-10 08:15:44 +00:00
Jeremy Fincher
ecc820a49c Fixe for bug with titles that spread across lines. 2003-09-09 21:00:36 +00:00
Jeremy Fincher
580edc37c5 Added a commit to doPrivmsg. 2003-09-09 17:40:47 +00:00
Jeremy Fincher
949deee935 Added RFE #802856, so regexps aren't required by searchfactoids. 2003-09-09 08:41:16 +00:00
Jeremy Fincher
073040d92e Fixed bug #802804 about the bad appearance of [not an acronym]. 2003-09-09 08:33:07 +00:00
Jeremy Fincher
d68c42684d Fixed bug #802801 about calc exposing too ugly error messages. Added tests. 2003-09-09 08:25:33 +00:00
Jeremy Fincher
9bca5d98f7 Fixed bug #802826, --safe wouldn't work. 2003-09-09 08:23:36 +00:00
Jeremy Fincher
e386518997 Fixed escaping KeyError and added test. 2003-09-09 07:57:49 +00:00
Jeremy Fincher
2719812074 Fixed bug with ACTIONs and added test. 2003-09-09 07:36:41 +00:00
Jeremy Fincher
8e44660692 Forgot to change the --url results based on now getting the id from the database. 2003-09-09 03:53:27 +00:00
Jeremy Fincher
cec0f77538 Changed unlearn to forget. 2003-09-08 20:14:46 +00:00
Jeremy Fincher
3625d98ed7 Removed extra dot.. 2003-09-08 20:13:27 +00:00
Jeremy Fincher
0c3e75b282 Added #id to lasturl. 2003-09-08 19:44:09 +00:00
James Vega
89d5f7a088 Make sure the urllib2 file gets closed properly in pgpkey 2003-09-08 17:35:24 +00:00
James Vega
cc07bc1272 Switched pgpkey from using .read() to .readline() since there's possibly a large amount of results. 2003-09-08 17:15:26 +00:00
James Vega
d9e3a199b0 Removed the trailing ' :: ' from pgpkey 2003-09-08 08:59:43 +00:00
James Vega
ecdcc63756 Switched a couple error messages to use conf.replyNotRegistered 2003-09-08 08:58:56 +00:00
James Vega
f8c85b07bc Fixed doPrivmsg and added more useful error messages 2003-09-08 08:58:00 +00:00
Jeremy Fincher
43fbbb9b70 Changed to use callbacks.reply again, now that we have the prefixName option. 2003-09-08 08:50:57 +00:00
James Vega
9d8aa07f86 Added pgpkey and a test case for it 2003-09-08 08:48:33 +00:00
Jeremy Fincher
7ed17912d2 Fixed bug where it doesn't respond to non-registered users. 2003-09-08 08:32:06 +00:00
Jeremy Fincher
66b62a42cd Fixed calc command. 2003-09-07 20:29:42 +00:00
Jeremy Fincher
da6f429fe5 Made a do376 so it authenticates (hopefully) before joining a channel. 2003-09-07 09:49:43 +00:00
Jeremy Fincher
4ca8f91fa9 Added WHERE clause for making sure started <> 0. 2003-09-07 08:09:23 +00:00
Jeremy Fincher
e53d4e7f87 Removed less command. 2003-09-07 06:34:07 +00:00
Jeremy Fincher
e3148c03fe Removed foldoc command (it's markedly inferior to Dict.dict). 2003-09-07 06:32:13 +00:00
Jeremy Fincher
cfa737d1d7 Changed limit to 100 instead of 10. 2003-09-07 06:23:32 +00:00
Jeremy Fincher
b6993152e6 Converted not to care about how long its messages are. 2003-09-07 06:10:09 +00:00
Jeremy Fincher
61ad6c7f1d Fixed bugs all over it. 2003-09-07 06:07:25 +00:00
Jeremy Fincher
b68908ed00 Convert not to care how long its messages are. 2003-09-07 06:01:25 +00:00
Jeremy Fincher
d3f1ca724f Convert not to care how long its messages are. 2003-09-07 05:37:49 +00:00
Jeremy Fincher
3161bb5750 Converted to not care how long its messages are. 2003-09-07 05:34:56 +00:00
Jeremy Fincher
5ef3d7c5f5 Moved tell and last commands from FunCommands to MiscCommands. 2003-09-07 05:26:18 +00:00
Jeremy Fincher
0c3cb0522b Converted to not worry about message length. 2003-09-07 05:08:30 +00:00
Jeremy Fincher
8a70f15e89 Fixed bug in aliases with no arguments and added test for it. 2003-09-06 21:58:42 +00:00
Jeremy Fincher
e01d52b2f2 Added less command. 2003-09-06 21:51:21 +00:00
Jeremy Fincher
63403e6408 Fixed documentation bugs. 2003-09-06 18:29:44 +00:00
Jeremy Fincher
b0ccf44e2b Fixed a documentation bug and changed startnickserv to startservices. 2003-09-06 18:26:31 +00:00
Jeremy Fincher
0c9efdf1ae Wasn't calling setDaemon on threads spawned in PeriodicFileDownloader. 2003-09-06 18:18:34 +00:00
Jeremy Fincher
526ac1ee18 Added URL for codecs module to encode/decode morehelps. 2003-09-06 08:39:50 +00:00
Jeremy Fincher
74d3b7820f Added PluginDocumentation to test to make sure all commands have documentation. 2003-09-06 06:23:03 +00:00
Jeremy Fincher
1ad3ec9914 Fixed some bugs with removetopic when the topic didn't match topicUnformatter. 2003-09-06 05:25:42 +00:00
Jeremy Fincher
1795229d85 Added dup to rpn and fixed bug with calc and rpn commands that they couldn't do negative values. 2003-09-06 05:25:05 +00:00
Jeremy Fincher
0bcffe0d3e Changed morehelp for translate. 2003-09-06 04:51:28 +00:00
Jeremy Fincher
e0396337b1 Made outFilter handle empty TOPICs. 2003-09-06 02:10:55 +00:00
Jeremy Fincher
9249df4d25 Made to ignore empty TOPICs just sent for information. 2003-09-06 02:06:57 +00:00
Jeremy Fincher
5974639ee3 Made Enforcer send an empty TOPIC to each channel when startenforcer is called so there is no exception when self.topics is empty. 2003-09-06 02:03:44 +00:00
Jeremy Fincher
b3253df28e do332 wasn't guarded by self.started. 2003-09-06 01:15:32 +00:00
Jeremy Fincher
8f2766b5ce Fixed UnboundLocalError from a variable name change in debfile. 2003-09-06 01:06:28 +00:00
Jeremy Fincher
2484ce94be Bold, for Strike. And also a bugfix, so it's not an entirely useless commit :) 2003-09-05 20:53:49 +00:00
Jeremy Fincher
9ddc8b2402 Forgot a format. 2003-09-05 20:47:35 +00:00
Jeremy Fincher
559bd74928 Added a randomdictionary example and changed the no matches output in the case where a dictionary is specified. 2003-09-05 20:46:39 +00:00
Jeremy Fincher
7501b3a625 Moved dict stuff to its own plugin. 2003-09-05 20:22:43 +00:00
Jeremy Fincher
e59f076f48 Forgot module docstring. 2003-09-05 19:50:38 +00:00
Jeremy Fincher
21f0cb89ae Moved babelfish stuff to its own plugin. 2003-09-05 19:49:44 +00:00
Jeremy Fincher
49ef542c83 Added --url option to lasturl. 2003-09-05 19:37:58 +00:00
Jeremy Fincher
0719bdec92 Added priority stuff for RFE #799899 2003-09-05 19:28:04 +00:00
Jeremy Fincher
0f843dd651 Fixed stupid failed tests in Notes. I'm retard. 2003-09-05 19:01:02 +00:00
Jeremy Fincher
5bcd98e1a4 Finally found that crazy KeyError exception being raised, I think. 2003-09-05 18:53:09 +00:00
Jeremy Fincher
fed6273f03 Make mention of <snip> in morehelp. 2003-09-05 15:47:15 +00:00
Jeremy Fincher
b682b8c2dc Bold <snip>. 2003-09-05 15:45:00 +00:00
Jeremy Fincher
39a5879d3f Fixed docstring for last command and change the way dict shows chopped entries. 2003-09-05 15:42:43 +00:00
Jeremy Fincher
5944282355 Added more example. 2003-09-05 10:56:30 +00:00
Jeremy Fincher
dc2e2077fb Added rudimentary whois command. 2003-09-05 09:59:59 +00:00
Jeremy Fincher
596958c4cc Added beGracious, changed to raw strings for regexps, and created test. 2003-09-05 09:40:26 +00:00
Jeremy Fincher
3be6255745 Updated example to have searchfactoids. 2003-09-05 08:17:14 +00:00
Jeremy Fincher
5fbba15857 Converted searchfactoids to accept a regular expression. 2003-09-05 08:15:26 +00:00
Jeremy Fincher
b2beec0804 Forgot to remove a format character after the last commit. 2003-09-05 06:55:58 +00:00
Jeremy Fincher
20036816c8 Converted uses of utils.pluralize to utils.nItems. 2003-09-05 06:49:14 +00:00
Jeremy Fincher
28b0fdba97 Made sure to close file descriptors in debfile. 2003-09-05 06:47:12 +00:00
Jeremy Fincher
d43b1ea700 Added dictionaries command and changed the order of the arguments to the dict command; also added --fancy argument to last command. 2003-09-05 04:28:56 +00:00
Jeremy Fincher
ea74e4e898 Fixed bug with multiple criteria in the last command. 2003-09-05 03:34:37 +00:00
Jeremy Fincher
b1a40f1cfd Rudimentary key searching added with the searchfactoids command. 2003-09-05 01:30:02 +00:00
Jeremy Fincher
55e3478668 Uh, I thought I committed this already...moved functions from fix.py to utils.py. 2003-09-05 00:16:28 +00:00
Jeremy Fincher
1208dd863a Oops, forgot a parenthese. 2003-09-04 21:37:38 +00:00
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