irc: another layer of unescaping

This commit is contained in:
William Pitcock 2018-08-17 22:17:07 -05:00
parent 786f9162b4
commit 2cfffd0693
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ class IRCProtocol(asyncio.Protocol):
def relay_message(self, actor, obj, content): def relay_message(self, actor, obj, content):
fmt = "\x02{name}\x02: {content} [{url}]" fmt = "\x02{name}\x02: {content} [{url}]"
content = html.unescape(content)
content = html.unescape(content) content = html.unescape(content)
msgcontent = content[0:256] msgcontent = content[0:256]
if len(content) > 256: if len(content) > 256: