Browse Source

replace IRC color codes with nothing

master
Brian S. Stephan 1 year ago
parent
commit
40286eeafc
  1. 2
      ircbot/bot.py

2
ircbot/bot.py

@ -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)

Loading…
Cancel
Save