Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 8be76a15d105862a856cf179465fe039602f79c5 Author: Wim <wim@42.be> Date: Thu Feb 22 22:51:32 2018 +0000 Set event channels to lowercase (irc). Closes #375 diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 14ac952..870782e 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -2767 +2767 @@ 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)