Do not autocorrect when the remote entity does not support correction
This commit is contained in:
parent
2dafd6d5cf
commit
e356c442b2
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue