replace IRC color codes with nothing

This commit is contained in:
Brian S. Stephan 2021-04-25 23:19:18 -05:00
parent d888c5f03b
commit 40286eeafc
1 changed files with 2 additions and 0 deletions

View File

@ -901,6 +901,8 @@ class IRCBot(irc.client.SimpleIRCClient):
if self.connection.server_config.replace_irc_control_with_markdown:
log.debug("old replystr: %s", replystr)
replystr = replystr.replace('\x02', '**')
replystr = replystr.replace('\x0F', '')
replystr = re.sub('\x03..', '', replystr)
log.debug("new replystr: %s", replystr)
log.debug("replypath: %s", replypath)