From e356c442b2ab240d9a96b07f946b6f3e86b260c8 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 17 May 2014 15:54:06 +0200 Subject: [PATCH] Do not autocorrect when the remote entity does not support correction --- plugins/autocorrect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/autocorrect.py b/plugins/autocorrect.py index f1a82b2a..dfd55e6c 100644 --- a/plugins/autocorrect.py +++ b/plugins/autocorrect.py @@ -40,6 +40,8 @@ class Plugin(BasePlugin): def sed_fix(self, msg, tab): if not tab.last_sent_message: return + if 'correct' not in tab.commands: + return body = tab.last_sent_message['body'] match = sed_re.match(msg['body']) if not match: