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