From 710f476b3be5f84482e2fe3d4dd848e658fe71e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20Ho=C3=A5s?= Date: Wed, 4 Jul 2012 13:36:08 +0200 Subject: [PATCH] Allow unicode replies from UD. --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 0beb3bd..16ac90c 100644 --- a/plugin.py +++ b/plugin.py @@ -74,7 +74,7 @@ class UrbanDictionary(callbacks.Plugin): if result_type != None and result_type == "exact" and len(jsondata['list']) > 0: output = ircutils.mircColor(term, 'red') + ": " outdef = string.join([item['definition'] + " " + self._bu("[ex:]") + " " + item['example'] + " " + self._bu("[/ex]") + " " for item in jsondata['list']], " | ") - output += outdef + output += outdef.encode('utf8') irc.reply(output) elif result_type == "no_results":