Remove the ?OTR Error: prefix when displaying an OTR error
This commit is contained in:
parent
1c5589bbd3
commit
ef3f5bf1d1
1 changed files with 1 additions and 1 deletions
|
@ -579,7 +579,7 @@ class Plugin(BasePlugin):
|
||||||
return
|
return
|
||||||
except ErrorReceived as err:
|
except ErrorReceived as err:
|
||||||
# Received an OTR error
|
# 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)
|
tab.add_message(OTR_ERROR % format_dict, typ=0)
|
||||||
del msg['body']
|
del msg['body']
|
||||||
del msg['html']
|
del msg['html']
|
||||||
|
|
Loading…
Reference in a new issue