From 7b21c1c2f422241cf2f3a8738e48e70bdcd6100e Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 22 Feb 2018 22:51:32 +0100 Subject: Set event channels to lowercase (irc). Closes #375 --- 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 14ac9525..870782ea 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -276,7 +276,7 @@ func (b *Birc) handleJoinPart(client *girc.Client, event girc.Event) { flog.Debugf("handleJoinPart: empty Params? %#v", event) return } - channel := event.Params[0] + channel := strings.ToLower(event.Params[0]) if event.Command == "KICK" { flog.Infof("Got kicked from %s by %s", channel, event.Source.Name) time.Sleep(time.Duration(b.Config.RejoinDelay) * time.Second) -- cgit v1.2.3