diff --git a/ircbot/bot.py b/ircbot/bot.py index 4a8f553..07d6343 100644 --- a/ircbot/bot.py +++ b/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)