James Vega
bd31b7f596
src/irclib: Handle IRCds which use a MAXLIST-style value for the MAXBANS 005 key.
2005-06-29 14:20:54 +00:00
James Vega
0880a07b72
test/test_callbacks: Fix a test failure.
2005-06-29 14:16:31 +00:00
James Vega
e4c9381f7b
src/commands: Update first so that state.errored will not prevent the bot from responding when the first converter fails.
2005-06-13 17:27:15 +00:00
James Vega
0027916214
test/test_callbacks.py: Added a test for multiple, nested invalidCommands not being recognized.
2005-06-08 14:28:48 +00:00
Jeremy Fincher
490fb0b140
Changed prefixName to prefixNick, which is more appropriate, and has always bothered me. Better now than later.
2005-06-01 21:08:30 +00:00
Jeremy Fincher
b5f1e2a3e7
Added utils.iter.limited, an iterable that limits the number of elements that can be taken from another iterable.
2005-05-30 19:19:11 +00:00
Jeremy Fincher
4fb15198a0
Properly fixed bugs where plugins expected strings and got non-strings.
2005-05-23 11:51:22 +00:00
Jeremy Fincher
a1992b55ec
Fixed the bug that caused "reply reply" to be necessary instead of just "reply".
2005-05-23 11:23:53 +00:00
James Vega
7bfc9cbdd3
utils/str: Rename nth to ordinal and have it return the full string instead of just the ordinal ending.
2005-05-09 17:20:43 +00:00
James Vega
8698eafd64
Add tests to clarify how source-nested commands work.
2005-04-14 01:47:21 +00:00
Jeremy Fincher
b48ca7ab71
Added supybot.protocols.irc.queuing.rateLimit.join, to throttle joins.
2005-04-14 01:35:35 +00:00
Jeremy Fincher
73f639b55f
Changed supybot.protocols.irc.refuseToQueueDuplicateMessages to supybot.protocols.irc.queuing.duplicates.
2005-04-14 00:56:26 +00:00
James Vega
8ce5a18120
Add tests for "command named same as nested command class".
2005-04-13 15:51:50 +00:00
Jeremy Fincher
0773aa31e5
Made Proxy Irc objects map to the same dictionary slot, so we don't need to worry about calling getRealIrc all the time.
2005-03-28 13:00:37 +00:00
James Vega
9971e991fe
Fix the modelines.
2005-03-23 20:07:45 +00:00
Jeremy Fincher
6b19504515
Changed the utils.iter.choice test to work bettar.
2005-03-14 18:55:11 +00:00
James Vega
aefcd594df
Move structures to utils/
2005-03-12 18:01:47 +00:00
Jeremy Fincher
0e68a44513
Fixed bug with nested plugins having the same name as themselves.
2005-03-09 08:05:24 +00:00
Jeremy Fincher
52fabfdaf7
Added a test for nested plugins having the same command name as the plugin name. It fails right now.
2005-03-09 07:28:35 +00:00
Jeremy Fincher
7c2bbeb638
Forgot the tests for source-nested plugins.
2005-02-25 10:00:42 +00:00
Jeremy Fincher
13e1f7ccb9
Added isSplit, a function for checking whether a given QUIT message is a split quit.
2005-02-25 09:59:39 +00:00
Jeremy Fincher
50d390ece4
Added a reset method, a couple more tests, and fixed a slight bug (IndexError being raised from the wrong place)
2005-02-25 09:44:51 +00:00
Jeremy Fincher
07814fc808
Fix for bug in first.__repr__.
2005-02-21 01:04:45 +00:00
Jeremy Fincher
06feea3ae7
Fixed test failures caused after test_irclib.py runs, and added a couple extra asserts and some commented out lines for more predictable test order.
2005-02-18 18:31:44 +00:00
James Vega
568ebcdf96
Add tests for utils.iter.choice.
2005-02-18 13:40:29 +00:00
Jeremy Fincher
6aca01bafb
Made utils.file.mktemp a little more stochastic.
2005-02-18 07:04:48 +00:00
Jeremy Fincher
5b3b616671
Forgot to remove the tests for getCommands.
2005-02-18 02:44:52 +00:00
James Vega
90c000793d
utils.gen.* functions shouldn't explicitly be called since they're all in the utils namespace.
2005-02-15 13:57:57 +00:00
Jeremy Fincher
b0cb616709
Changed callbacks.Privmsg to be callbacks.Plugin, and callbacks.PrivmsgCommandAndRegexp to be callbacks.Plugin.
2005-02-09 07:04:04 +00:00
Jeremy Fincher
46225641bd
Changed the implementation of IrcMsgQueue a bit.
2005-02-09 05:30:14 +00:00
Jeremy Fincher
affb09e4de
Commented out the case-insensitivity tests, since there's no easy way to fix them, and I'm willing to sacrifice the feature.
2005-02-07 06:08:37 +00:00
Jeremy Fincher
a3ebea6edd
Commented out a test that will probably never work again.
2005-02-07 06:05:37 +00:00
Jeremy Fincher
6b75be6e60
Changed supybot.protocols.irc.queueDuplicateMessages.
...
Changed supybot.protocols.irc.queueDuplicateMessages to
supybot.protocols.irc.refuseToQueueDuplicateMessages, and changed the default
to be to allow duplicate messages, rather than to reject them.
2005-02-03 20:13:49 +00:00
Jeremy Fincher
f6e132dde4
Added test_format.py, added floating point formatting to format, and fixed a bug in the %t format.
2005-02-01 11:57:50 +00:00
Jeremy Fincher
8897e6458b
Removed test/test_fix.py, moving its tests to test/test_utils.py, and fixed the resulting bugs that were discovered.
2005-02-01 07:08:30 +00:00
Jeremy Fincher
978cf65453
Added an email converter.
2005-02-01 07:08:13 +00:00
Jeremy Fincher
307f50137b
Abstracted out an assertError method for testing specs.
2005-02-01 07:07:35 +00:00
Jeremy Fincher
2b6994428e
Fixed a bug that was introduced in nItems.
2005-02-01 07:06:36 +00:00
Jeremy Fincher
2840aeda1e
Added tests for dynamicScope and fixed a bug that made it all but useless.
2005-02-01 07:05:42 +00:00
Jeremy Fincher
65893c8e3c
Added emailRe to utils.net.
2005-02-01 06:34:58 +00:00
James Vega
afc3c3f94a
Fix some calls to pluralize to not use the extra argument. Also updated the pluralize tests.
2005-01-31 15:59:44 +00:00
James Vega
ec045afd9c
Removed extraneous whitespace, unused imports, and converted some sets.Set() calls to set().
2005-01-31 15:24:36 +00:00
James Vega
0fde2393e6
Update usage of utils.iter functions.
2005-01-31 15:22:48 +00:00
James Vega
28cb5abc65
Update usage of functions in utils.gen.
2005-01-31 13:06:43 +00:00
Jeremy Fincher
381a42d863
Added an "irc" argument to callbacks.Privmsg.__init__, so now plugins get an Irc on instantiation.
2005-01-29 19:16:29 +00:00
Jeremy Fincher
a19a979499
Robustified and improved utils.str.format a bit; added a simple test.
2005-01-28 15:23:18 +00:00
Jeremy Fincher
34f1fe6562
Swapped the argument order for nItems *again*.
2005-01-28 15:17:26 +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
c08d435267
Fixed bug in irclib.IrcState's handling of KICK messages; they wouldn't remove the channel if the bot was kicked from it.
2005-01-28 13:58:59 +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