Commit Graph

172 Commits

Author SHA1 Message Date
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
Jeremy Fincher
477ec6ead7 Fix0red the failure. 2004-10-12 11:58:08 +00:00
Jeremy Fincher
4eafd9b779 New tests, and new implementation (though a test still fails). 2004-10-12 00:41:40 +00:00
James Vega
edc698e48b Fix testing for positiveInt and nonNegativeInt. 2004-10-06 04:32:03 +00:00
Jeremy Fincher
7ddf8eb257 Forgot an implication of requireExtra. 2004-10-03 22:38:10 +00:00
Jeremy Fincher
4c31e63ff8 Updated to use __all__, etc. 2004-10-03 09:03:34 +00:00
Jeremy Fincher
4dd07b1690 Converted to use commands. 2004-10-02 20:12:48 +00:00
Jeremy Fincher
54b6880a80 Changed noExtra to allowExtra and kept the default False. 2004-10-02 17:46:03 +00:00
Jeremy Fincher
51c0fb4cc1 Updated _int to accept other bases. 2004-10-02 17:31:58 +00:00
Jeremy Fincher
21ef10f831 Commented out a debug log, change inChannel and checkChannelCapability to automatically run getChannel if there is no state.channel, and perhaps a few other minor tweaks. 2004-10-02 16:52:26 +00:00
Jeremy Fincher
dc55a330fa Fixed bugs in getopt handling with arguments. 2004-10-02 03:07:19 +00:00
Jeremy Fincher
0e3f7fe527 Added wildcard support. 2004-10-02 02:21:26 +00:00
Jeremy Fincher
83af5aa6c0 Oops, left a print in. 2004-10-02 00:49:08 +00:00
Jeremy Fincher
567f0b0001 Fixed a bugz0r. 2004-10-01 22:33:02 +00:00
Jeremy Fincher
8afad62691 A now type and a text type. 2004-10-01 21:27:22 +00:00
Jeremy Fincher
786d2f07fc removed some bugginess and added getUrl. 2004-09-30 09:57:17 +00:00
Jeremy Fincher
a2e43fe367 Added a few more types. 2004-09-30 07:43:24 +00:00
Jeremy Fincher
75ef036569 Super, and subclass SupyThread. 2004-09-30 04:14:44 +00:00
Jeremy Fincher
4b5909331a Updated completely. 2004-09-28 07:10:27 +00:00
James Vega
3740c74aa9 Ooops. left in some debugging print statements. 2004-09-23 16:58:39 +00:00
James Vega
e381f11e12 Update src/Channels.py to use commands.wrap. Added some more converters to
ease the process. Hopefully this doesn't break anything. The tests passed!
2004-09-23 16:13:00 +00:00
Jeremy Fincher
356745d353 Variable name change. 2004-09-22 22:43:23 +00:00
Jeremy Fincher
7558a437e1 Factored out the args component of wrap into its own function, so it can be used in more situations. 2004-09-22 11:51:06 +00:00
Jeremy Fincher
8f97cccb1a Updated, added getPlugin, getSomething, validChannel, etc. 2004-09-21 18:36:40 +00:00
Jeremy Fincher
09e60502cf Initial checkin of commands, and conversion of Admin to use it. 2004-09-21 03:31:19 +00:00