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
..
2011-06-24 14:52:24 +02:00
2011-08-06 18:51:46 +02:00
2010-12-12 14:22:44 +01:00
2011-08-06 18:53:53 +02:00
2011-07-09 13:42:34 +02:00
2010-09-20 19:46:18 -04:00
2011-03-05 09:51:05 +01:00
2010-10-20 18:33:39 +02:00