Allow unicode replies from UD.

This commit is contained in:
Terje Hoås 2012-07-04 13:36:08 +02:00
parent 837bbf0922
commit 710f476b3b
1 changed files with 1 additions and 1 deletions

View File

@ -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":