From 4828c434439949f62a6e219ab9947c221a06b111 Mon Sep 17 00:00:00 2001 From: Anssi Kolehmainen Date: Sat, 6 Jan 2018 23:55:03 +0200 Subject: [PATCH] Convert received IRC channel names to lowercase. Fixes #329 (#330) --- bridge/irc/irc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {