Filter: Fix @uniud for Python 3.

This commit is contained in:
Valentin Lorentz 2013-07-16 19:46:52 +00:00
parent f786decb5e
commit cf6084e402

View File

@ -729,7 +729,7 @@ class Filter(callbacks.Plugin):
elif ord(c) >= 32: elif ord(c) >= 32:
turned.insert(0, c) turned.insert(0, c)
tlen += 1 tlen += 1
s = '%s \x02 \x02' % ''.join(map(lambda x: x.encode('utf-8'), turned)) s = '%s \x02 \x02' % ''.join(turned)
irc.reply(s) irc.reply(s)
uniud = wrap(uniud, ['text']) uniud = wrap(uniud, ['text'])
Filter = internationalizeDocstring(Filter) Filter = internationalizeDocstring(Filter)