summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-01-20 20:39:51 +0100
committermathieui <mathieui@mathieui.net>2015-01-20 20:39:51 +0100
commitef3f5bf1d171c031578e8eb5219d404a6dd8d4fc (patch)
treed11d1a200ffc544eebd6c28d52351dd67ff6b845
parent1c5589bbd3f7f5a5b30fe9235a484ba040e4b159 (diff)
downloadpoezio-ef3f5bf1d171c031578e8eb5219d404a6dd8d4fc.tar.gz
poezio-ef3f5bf1d171c031578e8eb5219d404a6dd8d4fc.tar.bz2
poezio-ef3f5bf1d171c031578e8eb5219d404a6dd8d4fc.tar.xz
poezio-ef3f5bf1d171c031578e8eb5219d404a6dd8d4fc.zip
Remove the ?OTR Error: prefix when displaying an OTR error
-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']