Commit e356c442 authored by mathieui's avatar mathieui

Do not autocorrect when the remote entity does not support correction

parent 2dafd6d5
......@@ -40,6 +40,8 @@ class Plugin(BasePlugin):
def sed_fix(self, msg, tab):
if not tab.last_sent_message:
if 'correct' not in tab.commands:
body = tab.last_sent_message['body']
match = sed_re.match(msg['body'])
if not match:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment