Commit Graph

34 Commits

Author SHA1 Message Date
Valentin Lorentz
7031e47ebd Fix merge. 2015-05-15 14:43:57 +02:00
Valentin Lorentz
487f8c8af5 Merge remote-tracking branch 'supybot/master' into testing
Conflicts:
	.mailmap
	README
	docs/FAQ.rst
	plugins/Ctcp/plugin.py
	plugins/Misc/plugin.py
	plugins/Network/plugin.py
	plugins/QuoteGrabs/plugin.py
	plugins/RSS/README.txt
	plugins/Relay/plugin.py
	plugins/ShrinkUrl/config.py
	plugins/ShrinkUrl/plugin.py
	plugins/ShrinkUrl/test.py
	setup.py
	src/callbacks.py
	src/commands.py
	src/conf.py
	test/test_commands.py
2015-05-15 14:41:08 +02:00
Valentin Lorentz
b0846f914e
Fix crash for commands with ambiguous getopts shortcuts and no docstring.
Signed-off-by: James McCoy <vega.james@gmail.com>
2015-03-26 02:00:43 -04:00
Valentin Lorentz
6f9960d7a4 Fix crash for commands with ambiguous getopts shortcuts and no docstring. 2015-03-03 08:55:29 +01:00
James McCoy
a8cd99f121 commands._getRe: Restore original args for any failure
String.re uses first('regexpMatcher', 'regexpReplacer').  If the args
provided to String.re are not a matcher and are longer than a single IRC
message (e.g., from a nested command), then regexpReplacer would never
be tried.  A too long error should be handled the same as running out of
args while trying to find a valid regexp.

Signed-off-by: James McCoy <vega.james@gmail.com>
2015-02-18 22:09:38 -05:00
Valentin Lorentz
40675ffdfa Merge remote-tracking branch 'supybot/master' into testing
Conflicts:
	plugins/Admin/plugin.py
	plugins/BadWords/config.py
	plugins/Filter/plugin.py
	plugins/Google/plugin.py
	plugins/Math/plugin.py
	plugins/Misc/plugin.py
	plugins/Note/plugin.py
	plugins/RSS/plugin.py
	plugins/Seen/test.py
	plugins/ShrinkUrl/config.py
	plugins/ShrinkUrl/plugin.py
	plugins/ShrinkUrl/test.py
	plugins/Status/plugin.py
	plugins/String/config.py
	plugins/String/plugin.py
	plugins/Time/plugin.py
	plugins/Todo/plugin.py
	plugins/Web/plugin.py
	plugins/__init__.py
	scripts/supybot-botchk
	setup.py
	src/__init__.py
	src/callbacks.py
	src/commands.py
	src/conf.py
	src/drivers/Socket.py
	src/ircdb.py
	src/irclib.py
	src/ircutils.py
	src/questions.py
	src/registry.py
	src/schedule.py
	src/test.py
	src/utils/file.py
	src/utils/gen.py
	src/utils/net.py
	src/utils/web.py
	src/world.py
2013-08-24 11:28:29 +02:00
James McCoy
e7d0bfd2d0 commands: Handle OverflowError in _int
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2013-08-23 23:36:44 -04:00
Valentin Lorentz
c23f25545f Fix core tests for Python 3 (actually imported + fixes). 2013-08-10 15:18:04 +02:00
James McCoy
1fdf3688e9 Add a test to verify the nick converter honors strictRfc
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-05-25 18:15:17 +02:00
James McCoy
c574203bab Add a test to verify the nick converter honors strictRfc
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-05-23 00:34:11 -04:00
James Vega
a3e4fc5b1d Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +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
9971e991fe Fix the modelines. 2005-03-23 20:07:45 +00:00
Jeremy Fincher
07814fc808 Fix for bug in first.__repr__. 2005-02-21 01:04:45 +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
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
895cd3e48e Resurrected the test suite with the new supybot-test program and RCS. 2005-01-23 19:42:25 +00:00
Jeremy Fincher
3d3b1498fe Changed copyright years on test files 2005-01-24 21:27:34 +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
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
James Vega
7eed44eef7 Converted Random to wrap. Added a long converter to assist this. 2004-11-28 02:23:59 +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
ba1bb34729 Allow abbreviation in getLiteral. 2004-10-26 23:17:58 +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
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
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
e3bdd34f3f Allow ids to have # in front of them. 2004-10-23 20:32:29 +00:00
Jeremy Fincher
edc1e70648 Fixed empty types. 2004-10-15 11:18:55 +00:00
James Vega
ec75306a37 Added a test for when we just want to wrap a command but don't need to get
any arguments from the user.
2004-10-15 11:13:53 +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
Jeremy Fincher
4eafd9b779 New tests, and new implementation (though a test still fails). 2004-10-12 00:41:40 +00:00