fixed a bug in plugins/factoids.py
This commit is contained in:
parent
be0e547d22
commit
2f2c732237
|
@ -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)
|
||||
|
||||
|
|
Reference in New Issue