This commit is contained in:
Luke Rogers 2014-02-21 14:55:33 +13:00
parent 2d90288856
commit 87b1d3d7f4
6 changed files with 21 additions and 13 deletions

View file

@ -9,7 +9,8 @@ def correction(inp, message=None, input=None, notice=None, db=None):
else:
nick = input.nick
last_message = db.execute("select name, quote from seen_user where name"
" like ? and chan = ?", (nick.lower(), input.chan.lower())).fetchone()
" like :nick and chan = :chan", {'nick': nick.lower(),
'chan': input.chan.lower()}).fetchone()
if last_message:
splitinput = input.msg.split("/")