Update correction.py

This commit is contained in:
Steven Smith 2013-08-12 09:50:20 +08:00
parent 8c01183cfc
commit a049b13927

View file

@ -17,7 +17,7 @@ def correction(inp, say=None, input=None, notice=None, db=None):
find = splitinput[1]
replace = splitinput[2]
if find in last_message[1]:
say("%s meant to say: %s" % (nick, last_message[1].replace(find, replace)))
say("%s meant to say: %s" % (nick, last_message[1].replace(find, "\x02" + replace + "\x02")))
else:
notice("%s can't be found in your last message" % find)
else: