slight tweaks to plugins/fmylife.py

This commit is contained in:
Luke Rogers 2012-02-24 02:52:09 +13:00
parent a4f9c2d070
commit 3d825f87d3

View file

@ -14,6 +14,8 @@ base_url = 'http://www.fmylife.com/'
def fml(inp): def fml(inp):
".fml [id] -- gets a random quote from fmyfife.com" ".fml [id] -- gets a random quote from fmyfife.com"
inp = inp.replace("#","") # this lets people use .fml #123456
if inp: if inp:
if not inp.isdigit(): if not inp.isdigit():
return "Invalid ID!" return "Invalid ID!"