summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/otr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/otr.py b/plugins/otr.py
index 16d2f3ed..6f68fa2c 100644
--- a/plugins/otr.py
+++ b/plugins/otr.py
@@ -579,7 +579,7 @@ class Plugin(BasePlugin):
return
except ErrorReceived as err:
# Received an OTR error
- format_dict['err'] = bytes(err.args[0]).decode('utf-8')
+ format_dict['err'] = err.args[0].error.decode('utf-8', errors='replace')
tab.add_message(OTR_ERROR % format_dict, typ=0)
del msg['body']
del msg['html']