fixed a bug in plugins/factoids.py

This commit is contained in:
Luke Rogers 2012-03-02 16:41:26 +13:00
parent be0e547d22
commit 2f2c732237
1 changed files with 4 additions and 1 deletions

View File

@ -113,7 +113,10 @@ def forget(inp, db=None, input=None, notice=None):
@hook.regex(r'^\? ?(.+)')
def question(inp, say=None, db=None, bot=None):
"?<word> -- Shows what data is associated with <word>."
prefix_on = bot.config["plugins"]["factoids"]["prefix"]
try:
prefix_on = bot.config["plugins"]["factoids"]["prefix"]
except KeyError:
prefix_on = False
db_init(db)