Commit Graph

74 Commits

Author SHA1 Message Date
Jeremy Fincher
70da904be2 States don't have a copy method. 2005-01-29 21:23:37 +00:00
James Vega
6f2aec352a Fix a bug where nickInChannel would add the channel to the args list. 2005-01-28 22:53:59 +00:00
Jeremy Fincher
e1fe232e9b Converted commands.py to use the new utils.web instead of webutils; fixed a bug in the httpUrl converter which rejected https protocols. 2005-01-28 14:51:25 +00:00
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
James Vega
88a906df84 Fix a bug where nickInChannel would append channel to the args list. 2005-01-28 22:59:27 +00:00
James Vega
225c565aee Add/update supybot.databases.plugins.channelSpecific{,.link{,.allow}}
channelSpecific.link replaces channelSpecific.channel
2005-01-08 07:22:46 +00:00
James Vega
d97a652182 Need to actually add the channel to state.args if getChannel throws an exception 2005-01-02 02:34:54 +00:00
Jeremy Fincher
b9067089b1 Removed an XXX. 2004-12-16 09:30:45 +00:00
James Vega
cedd6a2b59 Add some Raise=True and a test for multiple replies from Misc.hostmask. 2004-12-15 17:54:33 +00:00
Jeremy Fincher
af1d04291d Reimplementation of channeldb converter, respecting the channelValueness of supybot.databases.plugins.channelSpecific, and turned supybot.databases.plugins.channelSpecific.channel into a channelValue so channels can link their databases to other channels. 2004-12-13 06:18:41 +00:00
Jeremy Fincher
1a63af3b26 Fix for bug #1081086. Be sure to read the reasoning in the bug itself. 2004-12-08 06:16:08 +00:00
Jeremy Fincher
640241bd11 Added networkIrc, owner, admin. 2004-12-07 06:39:52 +00:00
James Vega
864fd97315 Fix a getNick bug 2004-12-03 02:54:27 +00:00
James Vega
a71d074e46 cleaner implementation of getLong 2004-11-30 18:12:43 +00:00
James Vega
c87788dc62 Make sure state.channel is carried over when we call State.essence. Also,
add continueOnError option to any().
2004-11-30 05:15:41 +00:00
Jeremy Fincher
b1d1991873 Converted to new method. 2004-11-30 04:47:21 +00:00
Jeremy Fincher
65b369ffd4 Removed a vestigial comment; our current system of not combiningRest has worked out well. 2004-11-30 04:41:43 +00:00
James Vega
7eed44eef7 Converted Random to wrap. Added a long converter to assist this. 2004-11-28 02:23:59 +00:00
Jeremy Fincher
de367731f1 Fixed some bugz0rs. 2004-11-21 13:18:58 +00:00
Jeremy Fincher
ed2488c1f8 Converted Alias to use commands.wrap (for the most part). 2004-11-11 16:37:47 +00:00
Jeremy Fincher
d280387518 rest should require args unless indicated otherwise. Currently, we can't indicate otherwise, but that's because we haven't had a need for it yet. 2004-11-08 20:51:39 +00:00
Jeremy Fincher
60966044b1 This should allow contexts where we allow converters. 2004-10-28 17:08:23 +00:00
Jeremy Fincher
72a7a22d4e Fixed a bug in getId and added a debug log to Spec.__call__. 2004-10-27 07:50:47 +00:00
James Vega
bc23a69406 You shall not delete ME! 2004-10-27 01:19:39 +00:00
Jeremy Fincher
ba1bb34729 Allow abbreviation in getLiteral. 2004-10-26 23:17:58 +00:00
Jeremy Fincher
49019308d7 Fixed getOtherUser. 2004-10-26 21:01:05 +00:00
Jeremy Fincher
b32215e169 Tons of updates, text now snarfs all remaining, but we still haven't stopped combining rest in context. 2004-10-26 20:49:20 +00:00
James Vega
a1b7b670fb getOtherUser shouldn't accept a hostmask (re: bug #1054680) 2004-10-26 18:32:11 +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
d0e2f2da31 Fixed. 2004-10-24 07:35:45 +00:00
James Vega
c0a8f5e45d commands.reversed => commands.reverse 2004-10-24 03:53:56 +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
1a6b4aaa95 Removed an old comment that wouldn't ever work. 2004-10-23 21:22:55 +00:00
Jeremy Fincher
1a73603e22 Added httpUrl converter. 2004-10-23 20:54:28 +00:00
Jeremy Fincher
e3bdd34f3f Allow ids to have # in front of them. 2004-10-23 20:32:29 +00:00
Jeremy Fincher
410569708c Fixed bugz0r. 2004-10-22 19:50:32 +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
2179548da9 Added an XXX. 2004-10-19 16:43:09 +00:00
Jeremy Fincher
803997ee78 Somehow the p-testing was removed. 2004-10-19 12:13:41 +00:00
Jeremy Fincher
e960bad9d1 Fixed #1049958. 2004-10-19 12:01:33 +00:00
Jeremy Fincher
eb5531034c Handle properly state.allowExtra in context. 2004-10-19 11:56:34 +00:00
Jeremy Fincher
9d0fa5e3ff Changed callerInChannel to callerInGivenChannel; added nickInChannel, added matches, and raised a subclass of KeyError from getConverter so we get prettier tracebacks. 2004-10-19 03:10:58 +00:00
Jeremy Fincher
6d62500a07 Allow wrappers to set the allowExtra value. 2004-10-19 01:43:58 +00:00
Jeremy Fincher
edc1e70648 Fixed empty types. 2004-10-15 11:18:55 +00:00
Jeremy Fincher
e720f46a5a Not completely working, but tests pass (for what's expected to pass). 2004-10-14 08:41:08 +00:00
James Vega
85780543aa Add some (hopefully) elucidating comments. If anyone (*cough*jemfinch*cough)
thinks they are ambiguous or could be better worded, please adjust.
2004-10-13 14:57:25 +00:00
James Vega
aeed361d4c We actually want the state that the spec call gives us. Also, let's check
whether our default is callable and return the value of calling it, if so.
2004-10-13 14:37:52 +00:00