diff options
author | Anssi Kolehmainen <anssi.kolehmainen@iki.fi> | 2018-01-06 23:55:03 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2018-01-06 22:55:03 +0100 |
commit | 9a95293bdf74a4d02827018649b6ea0ffdef74ba (patch) | |
tree | 72d09ad594ef24724d5604bf74899e327f356119 | |
parent | 0b3a06d263699363656d3536adc1348395431495 (diff) | |
download | matterbridge-msglm-9a95293bdf74a4d02827018649b6ea0ffdef74ba.tar.gz matterbridge-msglm-9a95293bdf74a4d02827018649b6ea0ffdef74ba.tar.bz2 matterbridge-msglm-9a95293bdf74a4d02827018649b6ea0ffdef74ba.zip |
Convert received IRC channel names to lowercase. Fixes #329 (#330)
-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 b7465977..117398f1 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -323,7 +323,7 @@ func (b *Birc) handlePrivMsg(client *girc.Client, event girc.Event) { if event.Source.Name == b.Nick { return } - rmsg := config.Message{Username: event.Source.Name, Channel: event.Params[0], Account: b.Account, UserID: event.Source.Ident + "@" + event.Source.Host} + rmsg := config.Message{Username: event.Source.Name, Channel: strings.ToLower(event.Params[0]), Account: b.Account, UserID: event.Source.Ident + "@" + event.Source.Host} flog.Debugf("handlePrivMsg() %s %s %#v", event.Source.Name, event.Trailing, event) msg := "" if event.IsAction() { |