clone1018/Shocky — pull request #3 by riking (2012-05-04 19:35:04+00:00)
Title: Multiple factoid changes

First, this reworks factoid evaluation. Alias parsing is now its own method, and and can return aliases.

Secondly, I added two factoid functions. Here's their documentation (also in the commit message):
ifalias(factoid,trueval[,falseval[,args]])
Evaluates the factoid "factoid args".
If the result is "true" or a number greater than 0, the
trueval is substituted. Otherwise, the falseval is substituted.
subst(factoid)
Evaluates the factoid "factoid" and substitutes the result.