diff options
author | mathieui <mathieui@mathieui.net> | 2015-01-20 20:39:51 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-01-20 20:39:51 +0100 |
commit | ef3f5bf1d171c031578e8eb5219d404a6dd8d4fc (patch) | |
tree | d11d1a200ffc544eebd6c28d52351dd67ff6b845 /plugins | |
parent | 1c5589bbd3f7f5a5b30fe9235a484ba040e4b159 (diff) | |
download | poezio-ef3f5bf1d171c031578e8eb5219d404a6dd8d4fc.tar.gz poezio-ef3f5bf1d171c031578e8eb5219d404a6dd8d4fc.tar.bz2 poezio-ef3f5bf1d171c031578e8eb5219d404a6dd8d4fc.tar.xz poezio-ef3f5bf1d171c031578e8eb5219d404a6dd8d4fc.zip |
Remove the ?OTR Error: prefix when displaying an OTR error
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/otr.py | 2 |
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'] |