mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Seen: Fix error if last message contained non-ascii characters.
This commit is contained in:
parent
2d4914bc99
commit
5691ce58a5
@ -29,6 +29,7 @@
|
|||||||
###
|
###
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import supybot.log as log
|
import supybot.log as log
|
||||||
@ -206,6 +207,8 @@ class Seen(callbacks.Plugin):
|
|||||||
nick, channel,
|
nick, channel,
|
||||||
utils.timeElapsed(time.time()-when))
|
utils.timeElapsed(time.time()-when))
|
||||||
if self.registryValue('showLastMessage', channel):
|
if self.registryValue('showLastMessage', channel):
|
||||||
|
if sys.version_info[0] < 3:
|
||||||
|
said = said.decode('utf8')
|
||||||
reply = _('%s: %s') % (reply, said)
|
reply = _('%s: %s') % (reply, said)
|
||||||
irc.reply(reply)
|
irc.reply(reply)
|
||||||
elif len(results) > 1:
|
elif len(results) > 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user