diff options
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/irc/irc.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 2c8c09a4..e4fc0680 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -288,9 +288,7 @@ func (b *Birc) handlePrivMsg(event *irc.Event) { } msg += event.Message() // strip IRC colors - re := regexp.MustCompile(`\x03(\d+,|)\d+`) - msg = re.ReplaceAllString(msg, "") - re = regexp.MustCompile(`[[:cntrl:]]`) + re := regexp.MustCompile(`[[:cntrl:]](?:\d{1,2}(?:,\d{1,2})?)?`) msg = re.ReplaceAllString(msg, "") var r io.Reader |