Limnoria/plugins/Factoids
Daniel Folkinshteyn b12d8a8a04 Use the ircutils.standardSubsitute function upon factoid output.
This allows inclusion of the usual standardSubstitute vars within factoids.

There is no config to disable this, since it is possible to escape the substitutions
by simply doubling the dollar signs, as per the python documentation:
http://docs.python.org/library/string.html#template-strings

Thus, if you want a factoid to output a literal "$channel", for example, all
you'd need to do is use "$$channel" in your factoid text, which will come out
as "$channel" when said by the bot.

Also added tests for this new behavior.
2011-02-25 19:18:02 +01:00
..
locale Factoids: localize a string 2010-11-11 12:39:13 +01:00
__init__.py Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
config.py for Factoids: make approximate fuzzy key searches also when invoking whatis directly. 2011-02-25 19:13:27 +01:00
messages.pot Factoids: Internationalize a config variable 2010-11-11 12:37:21 +01:00
plugin.py Use the ircutils.standardSubsitute function upon factoid output. 2011-02-25 19:18:02 +01:00
README.txt Factoids should be under plugins/ 2005-04-17 21:01:12 +00:00
test.py Use the ircutils.standardSubsitute function upon factoid output. 2011-02-25 19:18:02 +01:00

Insert a description of your plugin here, with any notes, etc. about using it.