From ef3f5bf1d171c031578e8eb5219d404a6dd8d4fc Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 20 Jan 2015 20:39:51 +0100 Subject: Remove the ?OTR Error: prefix when displaying an OTR error --- plugins/otr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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'] -- cgit v1.2.3