summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: