Remove the ?OTR Error: prefix when displaying an OTR error

This commit is contained in:
mathieui 2015-01-20 20:39:51 +01:00
parent 1c5589bbd3
commit ef3f5bf1d1
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -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']