diff options
author | Wim <wim@42.be> | 2016-09-22 23:48:05 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-09-22 23:48:05 +0200 |
commit | e8a2e1af63df6ddaedf6dc9e0db43687b676a4a3 (patch) | |
tree | 109f8401226c2132c14fab93a4b8e3726ecf1f4e /bridge/irc | |
parent | 1d240140c90fe46933770fb2f7ddf4b6a5be0e8e (diff) | |
download | matterbridge-msglm-e8a2e1af63df6ddaedf6dc9e0db43687b676a4a3.tar.gz matterbridge-msglm-e8a2e1af63df6ddaedf6dc9e0db43687b676a4a3.tar.bz2 matterbridge-msglm-e8a2e1af63df6ddaedf6dc9e0db43687b676a4a3.zip |
Fix IRC colors regexp
Diffstat (limited to 'bridge/irc')
-rw-r--r-- | bridge/irc/irc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index c8cb58f6..b394a9e0 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -160,7 +160,7 @@ 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()} |