summaryrefslogtreecommitdiff
path: root/plugins/autocorrect.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-05-17 15:54:06 +0200
committermathieui <mathieui@mathieui.net>2014-05-17 15:54:06 +0200
commite356c442b2ab240d9a96b07f946b6f3e86b260c8 (patch)
tree9f82290650e8cb87319c44cd3d9d6fb7ba504a30 /plugins/autocorrect.py
parent2dafd6d5cfc612dc50b54d3b1c06e4450df6424e (diff)
downloadpoezio-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.py2
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: