fixed a bug in plugins/factoids.py
This commit is contained in:
parent
be0e547d22
commit
2f2c732237
1 changed files with 4 additions and 1 deletions
|
@ -113,7 +113,10 @@ def forget(inp, db=None, input=None, notice=None):
|
||||||
@hook.regex(r'^\? ?(.+)')
|
@hook.regex(r'^\? ?(.+)')
|
||||||
def question(inp, say=None, db=None, bot=None):
|
def question(inp, say=None, db=None, bot=None):
|
||||||
"?<word> -- Shows what data is associated with <word>."
|
"?<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)
|
db_init(db)
|
||||||
|
|
||||||
|
|
Reference in a new issue