Do not autocorrect when the remote entity does not support correction

This commit is contained in:
mathieui 2014-05-17 15:54:06 +02:00
parent 2dafd6d5cf
commit e356c442b2

View file

@ -40,6 +40,8 @@ class Plugin(BasePlugin):
def sed_fix(self, msg, tab): def sed_fix(self, msg, tab):
if not tab.last_sent_message: if not tab.last_sent_message:
return return
if 'correct' not in tab.commands:
return
body = tab.last_sent_message['body'] body = tab.last_sent_message['body']
match = sed_re.match(msg['body']) match = sed_re.match(msg['body'])
if not match: if not match: