diff options
author | Anssi Kolehmainen <anssi.kolehmainen@iki.fi> | 2018-01-06 23:55:03 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2018-01-09 00:03:32 +0100 |
commit | 4828c434439949f62a6e219ab9947c221a06b111 (patch) | |
tree | e49c05a82e244e34f8c6a35f16f2f51ea4f6502d | |
parent | a5d019734906bedf7e8f07796eb29930b7305076 (diff) | |
download | matterbridge-msglm-4828c434439949f62a6e219ab9947c221a06b111.tar.gz matterbridge-msglm-4828c434439949f62a6e219ab9947c221a06b111.tar.bz2 matterbridge-msglm-4828c434439949f62a6e219ab9947c221a06b111.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() { |