commit a77b342b33f7128c6ca773189abd881f4593ca7b
Author: Wim <wim@42.be>
Date: Thu Sep 22 23:48:05 2016 +0000
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index c8cb58f..b394a9e 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -1607 +1607 @@ func (b *Birc) handlePrivMsg(event *irc.Event) {
}
msg += event.Message()
// strip IRC colors
- re := regexp.MustCompile(`[[:cntrl:]]\d+,\d`)
+ re := regexp.MustCompile(`[[:cntrl:]](\d+,|)\d+`)
msg = re.ReplaceAllString(msg, "")
flog.Debugf("Sending message from %s on %s to gateway", event.Arguments[0], b.FullOrigin())
b.Remote <- config.Message{Username: event.Nick, Text: msg, Channel: event.Arguments[0], Origin: b.origin, Protocol: b.protocol, FullOrigin: b.FullOrigin()}