Limnoria/plugins/Factoids
Daniel Folkinshteyn 976ad82d69 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.
2010-04-28 00:10:48 -04:00
..
README.txt Factoids should be under plugins/ 2005-04-17 21:01:12 +00: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. 2010-04-18 03:33:10 -04:00
plugin.py Use the ircutils.standardSubsitute function upon factoid output. 2010-04-28 00:10:48 -04:00
test.py Use the ircutils.standardSubsitute function upon factoid output. 2010-04-28 00:10:48 -04:00

README.txt

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