mirror of
https://github.com/42wim/matterbridge
synced 2024-11-17 03:26:07 +00:00
Set event channels to lowercase (irc). Closes #375
This commit is contained in:
parent
f8714d81f5
commit
7b21c1c2f4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user