diff options
author | mathieui <mathieui@mathieui.net> | 2014-05-17 15:54:06 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-05-17 15:54:06 +0200 |
commit | e356c442b2ab240d9a96b07f946b6f3e86b260c8 (patch) | |
tree | 9f82290650e8cb87319c44cd3d9d6fb7ba504a30 /plugins/autocorrect.py | |
parent | 2dafd6d5cfc612dc50b54d3b1c06e4450df6424e (diff) | |
download | poezio-e356c442b2ab240d9a96b07f946b6f3e86b260c8.tar.gz poezio-e356c442b2ab240d9a96b07f946b6f3e86b260c8.tar.bz2 poezio-e356c442b2ab240d9a96b07f946b6f3e86b260c8.tar.xz poezio-e356c442b2ab240d9a96b07f946b6f3e86b260c8.zip |
Do not autocorrect when the remote entity does not support correction
Diffstat (limited to 'plugins/autocorrect.py')
-rw-r--r-- | plugins/autocorrect.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |