Commit Graph

77 Commits

Author SHA1 Message Date
James McCoy
01c8dc7f78 String.decode: Only encode('utf-8') when the decode string is unicode
Closes: Sf#3165718
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2011-10-22 14:57:20 -04:00
Mika Suomalainen
49ae4576b3 String: added l10n-fi. 2011-10-21 17:28:08 +03:00
Mika Suomalainen
e0185a01a0 String: start l10n-fi.
Currently only the first string is translated.
2011-10-18 18:02:37 +03:00
Daniel Folkinshteyn
37597bfe94 Create a commands.process function which runs a function inside a separate process.
This is the only way to limit the execution time of a possibly long-running python statement.
Use this on String.re, due to the possibility of pathologically long re matching in python.
This allows us to remove the 'trusted-only' restriction on string.re.
In the future, this should probably be used in other places that take user-supplied regexps,
such as 'misc last --regexp', for example, as well as other potentially long-running tasks
that can block the bot.

Conflicts:

	plugins/String/plugin.py
	src/commands.py
2011-08-15 17:24:33 +02:00
Daniel Folkinshteyn
0e3002d1f8 String: set default re subprocess timeout to 0.1, since that should be quite enough.
Conflicts:

	plugins/String/config.py
2011-08-13 01:57:03 +02:00
Daniel Folkinshteyn
91ac1c2179 String: fix it up to work with the previously committed enhancement for subprocess timeout.
Conflicts:

	plugins/String/plugin.py
2011-08-13 01:55:25 +02:00
skizzhg
7e88bb1ce3 Update l10n-it for many plugins. 2011-08-07 11:16:04 +02:00
Valentin Lorentz
fac7f9b379 AutoMode & Conditional & Misc & Network & Owner & Plugin & RSS & Relay & Services & String & Unix: Add l10n-it. 2011-07-12 15:04:13 +02:00
Valentin Lorentz
5a65dd7162 String: Fix typo in l10n-fr 2011-06-10 19:48:10 +02:00
Valentin Lorentz
0d7e3d3759 (Re)generate all plugin's .pot file 2011-02-26 10:40:50 +01:00
Valentin Lorentz
1cceeb7ad1 Fix @String decode utf8 issue 2011-01-26 08:30:20 +01:00
Valentin Lorentz
f13a2c7ee4 Fix translations 2011-01-08 13:35:43 +01:00
Valentin Lorentz
05389a98ef Localize Services, ShrinkUrl, Status, and String into French 2010-10-29 20:19:35 +02:00
Valentin Lorentz
371a40e004 Internationalize Seen, Services, ShrinkUrl, Status, String, and Success 2010-10-20 09:10:03 +02:00
Štěpán Němec
a66034f852 Fix some typos/wordings.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-08-26 16:34:12 -04:00
James Vega
804fbe8209 String: Trim trailing \n from encode's response.
Certain encode functions, like base64, add a trailing \n which simply clutters
the response for Supybot.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-06 11:29:11 -04:00
James Vega
6a0b667817 String: Update the codecs URL in encode/decode's help
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-06 11:27:04 -04:00
James Vega
ebfe8e66f3 String: Give a more useful message when decoding base64 fails
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-06 11:26:15 -04:00
Jeremy Fincher
4de0bb31f9 Corrected slight inaccuracy in a configuration parameter's help. 2009-03-11 13:37:27 -04:00
James Vega
828d41e37d Add utils/crypt.py as a Python version-agnostic crypt module 2009-03-11 13:37:26 -04:00
James Vega
068f029355 wrap() String.len to vastly simplify the function and prevent responding with -1 when we get no arguments.
Add a test to make sure we respond with the help when called with no arguments.
2009-03-11 13:37:24 -04:00
James Vega
a3e4fc5b1d Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
James Vega
9971e991fe Fix the modelines. 2005-03-23 20:07:45 +00:00
Jeremy Fincher
fdbecfd1d4 Changed the name of the strlen command just to be 'len'. 2005-02-10 07:04:08 +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
James Vega
c409493d3d Update some copyright strings. 2005-02-02 05:30:32 +00:00
James Vega
39e323f4b1 Split off commands from Fun and Utilities to the new String plugin. 2005-02-02 05:02:08 +00:00