Commit Graph

413 Commits

Author SHA1 Message Date
Jeremy Fincher
5fd6bbb52d Completely restructured our utils modules.
Tons of changes.  Here's the summary of things that matter most:

* There is no more supybot.fix.
* There is no more supybot.webutils; now there is supybot.utils.web.
  * It's no longer webutils.WebError, but just utils.web.Error.
* You shouldn't import itertools, ideally, but instead import utils.iter.
* No more using imap/ifilter in commands unless absolutely necessary.  It's
  premature optimization and annoying.
* utils.str.format isn't quite ready yet, but will be soon.  That'll be the
  next big thing to fix in our code.
2005-01-27 06:59:08 +00:00
Jeremy Fincher
5019d10a1b Updated license years. 2005-01-19 13:33:05 +00:00
Jeremy Fincher
8ca625d339 Initial import. 2005-01-19 13:14:38 +00:00
James Vega
dbfec8afb9 Add supybot module 2007-04-22 20:10:26 +00:00
Jeremy Fincher
69f71d1850 Fixed a simple XXX. 2005-01-07 15:49:11 +00:00
Jeremy Fincher
1f90a8ae54 Extra backup for something I can't remember what now. 2005-01-04 03:45:24 +00:00
James Vega
4cd15d053a Move the docstring for addressed 2004-12-29 19:22:37 +00:00
James Vega
7217b01cd2 Tag addressed messages with the results of callbacks._addressed. Also,
reorder the calling of addressedRes and res in PrivmsgCommandAndRegexp so
that addressedRes are run first.
2004-12-29 06:15:19 +00:00
Jeremy Fincher
8b563876ea We shouldn't try to get ChannelValues when not given a channel. 2004-12-20 18:58:07 +00:00
Jeremy Fincher
ca8100605c We shouldn't try to get ChannelValues when not given a channel. 2004-12-20 18:56:25 +00:00
Jeremy Fincher
bc5e7de336 Let's try this location for our placement of a dynamic channel. 2004-12-17 06:02:10 +00:00
Jeremy Fincher
664c468130 Updated to respect channel-value-ish-ness of reply.showSimpleSyntax. 2004-12-16 14:16:56 +00:00
Jeremy Fincher
93e9fa3180 Change assert message. 2004-12-10 08:12:18 +00:00
Jeremy Fincher
400c9aa7a3 Change from an old-school typecheck to a new-school one. 2004-12-10 08:09:01 +00:00
Jeremy Fincher
4d35de48c2 Added an assert. 2004-12-10 07:59:06 +00:00
Jeremy Fincher
7950141d94 Didn't update when I changed this configuration variable name. 2004-12-10 07:44:24 +00:00
Jeremy Fincher
c5e48d574f Indentation change. 2004-12-10 07:03:53 +00:00
Jeremy Fincher
c948a257fa Fix for test failures in Fun.py. 2004-12-08 07:09:40 +00:00
Jeremy Fincher
955bf08255 Rudimentary sorting. 2004-12-02 05:37:04 +00:00
Jeremy Fincher
040888405c Refactoring of error-related configuration variables. 2004-11-04 05:34:24 +00:00
Jeremy Fincher
f4f35f5d7c Fixed some help stuff. 2004-10-27 07:05:58 +00:00
Jeremy Fincher
8324de6da4 Help abstraction. 2004-10-27 04:29:03 +00:00
Jeremy Fincher
e688faf16e Moved standardSubstitute to ircutils. 2004-10-27 01:37:19 +00:00
Jeremy Fincher
4539f388bf Fixed an infinite loop bug. 2004-10-26 19:59:45 +00:00
Jeremy Fincher
f11e7d19d3 Fixed a bugz0r. 2004-10-26 19:37:03 +00:00
Jeremy Fincher
e378b34138 Added a configurable more length. 2004-10-26 18:54:03 +00:00
Jeremy Fincher
0408beb0fb Fix for bug with instant mores; also change supybot.reply.truncate to supybot.reply.mores (i.e., it's not just a group now, it's a boolean). 2004-10-26 18:42:53 +00:00
James Vega
cbd5abbab7 A bunch more %r -> %s conversions as well as wrap updates, new policy for
Channel.voice and some bug fixes for Debian
2004-10-25 22:59:03 +00:00
Jeremy Fincher
7f5a12a893 Extra debug log. 2004-10-24 07:36:00 +00:00
James Vega
4dafdcdd57 Massive updates. %r -> %s, some commands.wrap updates. Factoids is broke
until we get some stuff working in commands.py
2004-10-23 22:07:50 +00:00
Jeremy Fincher
d20381336a Bugfix for nick.atEnd taking precedence over prefixChars. 2004-10-23 19:26:53 +00:00
Jeremy Fincher
c943ab77bb Made commands.wrap stop doing decorators, exposed thread and urlSnarfer, and changed plugins accordingly. 2004-10-22 05:56:55 +00:00
Jeremy Fincher
5bc91113fe Fixed so disabled commands in other plugins won't break our outfilter. 2004-10-10 15:11:19 +00:00
Jeremy Fincher
3dceea823d Added supybot.reply.whenAddressedByNick.atEnd. 2004-10-09 02:48:08 +00:00
Jeremy Fincher
b03000ed42 If replies.success is empty, don't send a success message at all. 2004-10-02 18:28:58 +00:00
Jeremy Fincher
c23e6c97a6 Automatically raise errorNoCapability as well. 2004-10-01 21:26:20 +00:00
Jeremy Fincher
e6efedbdf4 Fixed a bugz0r in replies. 2004-10-01 01:32:17 +00:00
Jeremy Fincher
6878510d7e Let's safe-argument this thing earlier. 2004-09-30 07:36:55 +00:00
Jeremy Fincher
c20d3cafbd Let's make threaded commands tag the message as replied from the start, so things like Infobot won't respond. 2004-09-30 05:29:26 +00:00
Jeremy Fincher
69dce4761d Made sure to return our reply messages, changed some threading stuff, etc. 2004-09-30 04:13:08 +00:00
Jeremy Fincher
f9ae666f3b Fixed a bug in errorInvalid's handling of Raise. Man, we just need to default it to True for everything and make people deal. 2004-09-28 08:12:03 +00:00
Jeremy Fincher
9ca87988ae We should return the message from errors/replies. 2004-09-28 07:16:32 +00:00
Jeremy Fincher
23fb9e1c7b Changed tag name to isError rather than errored. 2004-09-24 20:28:31 +00:00
James Vega
35894401c7 Let's move noReply() to RichReplyMethods so that anything that subclasses
it can use noReply().  Fixes bug #1032406
2004-09-24 13:52:46 +00:00
Jeremy Fincher
78da84e4cb Configurable quotes, w00t. 2004-09-24 01:13:17 +00:00
Jeremy Fincher
3e58419338 Various minor refactorings, moved supybot.reply.{brackets,pipeSyntax} to supybot.commands.nested. 2004-09-23 23:15:27 +00:00
James Vega
f700927969 We were missing an import and a conf. header 2004-09-23 19:15:14 +00:00
Jeremy Fincher
72214dc9d0 Added supybot.reply.maximumLength. 2004-09-23 17:07:54 +00:00
Jeremy Fincher
0aa6cd5c28 Fixed importantPlugin dispatching. 2004-09-23 16:32:58 +00:00
Jeremy Fincher
16b9fb386e Added a repr keyword argument to errorInvalid and used it to fix bug #1030474. 2004-09-22 22:41:58 +00:00
Jeremy Fincher
fc8da1888c Variable name change. 2004-09-22 22:26:17 +00:00
Jeremy Fincher
998f61cce8 Moved disambiguation stuff to callbacks.IOP. Also fixed rename-persistence. 2004-09-22 21:38:20 +00:00
James Vega
781ba32793 Fix bug #1030367, supybot.replywithNickPrefix doesn't obey channel value 2004-09-21 01:32:26 +00:00
James Vega
50973a10fb Remove #! lines. 2004-09-20 03:01:50 +00:00
Jeremy Fincher
9720b79a48 Changed tagging method. 2004-09-16 14:37:08 +00:00
Jeremy Fincher
9be4fd112d Finally got topological sorting working. 2004-09-16 10:28:59 +00:00
Jeremy Fincher
4605ce84f8 Added repliedTo tag, stopped not calling invalidCommand if regexp methods match. 2004-09-14 15:07:52 +00:00
Jeremy Fincher
5c804d27ea Didn't update PrivmsgRegexp to the new callCommand shmadealio. 2004-09-13 03:02:01 +00:00
Jeremy Fincher
75e53d37f3 Catch callbacks.Error coming out of invalidCommand. 2004-09-12 20:27:03 +00:00
Jeremy Fincher
8bbed5a90e Dispatch __eq__ and __hash__ to our real Irc. 2004-09-12 05:48:19 +00:00
Jeremy Fincher
dd7b02fb54 More useful assert. 2004-09-11 16:14:43 +00:00
Jeremy Fincher
ee4768634f Changed to __lt__ instead of __cmp__ -- it's simpler and doesn't screw with equality. 2004-09-10 07:27:42 +00:00
Jeremy Fincher
8eeab87a98 Stupid asserts. Definitely not worth it there. 2004-09-10 06:58:36 +00:00
Jeremy Fincher
c573ab5996 New plugin prioritization method. 2004-09-10 06:30:21 +00:00
Jeremy Fincher
3537c34a58 More fix0rs for prefixName. 2004-09-09 18:53:40 +00:00
Jeremy Fincher
767f5bb0a3 Added proper prefixName handling to callbacks.reply. 2004-09-09 15:33:18 +00:00
Jeremy Fincher
ee70224aa3 Changed callCommand to give a name rather than a method; added invalidCommand throttling, ctcp throttling, and whole bunch of other crap. 2004-09-08 23:34:48 +00:00
James Vega
846bf9102b Correctly report the invalidCommand that set irc.finished. 2004-09-07 19:13:27 +00:00
Jeremy Fincher
f6ae3b23a4 Elucidating docstring. 2004-09-01 10:56:55 +00:00
Jeremy Fincher
7ef00a2c6a Handled reply.withNoticeWhenPrivate appropriately. 2004-08-31 14:54:37 +00:00
Jeremy Fincher
3aedb305f9 Fix for possible bugz0r with reply.withNoticeWhenPrivate. 2004-08-30 04:35:51 +00:00
James Vega
6b59933673 Let's make sure nested commands don't immediately nest commands (aka using a
nested command to determine what the outer nested command is going to call)
2004-08-28 22:28:44 +00:00
Jeremy Fincher
42f3e1340c Reply's getConfig shouldn't be used on GlobalValues. 2004-08-27 15:13:48 +00:00
Jeremy Fincher
ff7622b083 Added an extra try/except madoodle since what we expect to be firewalled (a plugin's invalidCommand). 2004-08-26 04:19:06 +00:00
James Vega
533fbd2762 Proper fix for problem URL tests exposed 2004-08-26 02:29:48 +00:00
Jeremy Fincher
a8584ba898 Fix for failing test in URL. 2004-08-26 01:04:23 +00:00
Jeremy Fincher
6b1f742e71 prefixChars == reply.whenAddressedBy.chars. 2004-08-25 23:03:42 +00:00
James Vega
2a040b475f actually implement reply.withNoticeWhenPrivate 2004-08-24 19:48:01 +00:00
Jeremy Fincher
547137dc1c Give the original error a Raise argument. 2004-08-24 14:03:24 +00:00
Jeremy Fincher
fbb348b6e7 Copyright updates. Again, more is left to be done, but this is my part. 2004-08-23 13:14:06 +00:00
Jeremy Fincher
6d1d6013cd Fixed exception id 0x8a41d. 2004-08-19 19:48:00 +00:00
Jeremy Fincher
501b642796 Some extra periods. 2004-08-19 12:19:18 +00:00
Jeremy Fincher
0f598271dc Speeling fixes. 2004-08-18 23:15:27 +00:00
Jeremy Fincher
523204f080 Let's allow errors to raise their complaint. 2004-08-18 18:44:34 +00:00
Jeremy Fincher
162456108e It's possible that the Misc plugin isn't loaded. 2004-08-16 20:03:11 +00:00
Jeremy Fincher
7b2cbd950f Fixed the user list problem mo betta. 2004-08-16 13:22:08 +00:00
Jeremy Fincher
e7aa2efcfd Fixed the user list problem. 2004-08-16 01:29:22 +00:00
James Vega
efb7891f46 pylint cleanups 2004-08-11 12:57:52 +00:00
Jeremy Fincher
b3169b7c54 Forgot chanPlugin. Yay, PyChecker. 2004-08-11 07:43:28 +00:00
Jeremy Fincher
2259e9d8b6 Added log.stat, supybot.log.statistics, and changed some statistic-keeping functions over to use log.stat. 2004-08-10 07:39:23 +00:00
Jeremy Fincher
8a4e79e007 Let's try to respect some channel values, shall we? 2004-08-08 17:48:33 +00:00
Jeremy Fincher
3fa477dc90 Removed reply.withPrivate notice, replaced with two separate variables, reply.withNotice and reply.inPrivate. 2004-08-08 17:34:59 +00:00
Jeremy Fincher
3db50c1a2b Fix for bug about reply.withPrivateNotice overriding stuff. 2004-08-08 00:41:13 +00:00
Jeremy Fincher
26fcd9ad97 Slightt update -- private implies not prefixName. 2004-08-03 04:44:12 +00:00
Jeremy Fincher
5dbb3141ad Bugfix in the add. 2004-08-02 11:39:16 +00:00
Jeremy Fincher
cb1cd25995 Let's actually respect the channel-value-ness of reply.whenAddressedByNick. 2004-08-02 11:19:58 +00:00
James Vega
d47d54bc82 Almost out entire testsuite works, yet again. Yay! 2004-08-01 14:38:37 +00:00
Jeremy Fincher
2a611309a7 Added mores group and instant. 2004-07-31 12:38:38 +00:00
Jeremy Fincher
f349f08111 Changed IrcObjectProxyRegexp to SimpleProxy to more accurately show what the deal is. 2004-07-31 12:14:13 +00:00
Jeremy Fincher
41f07048c1 Slight change to logging output. 2004-07-31 08:27:25 +00:00