forked from lug/matterbridge
		
	Set event channels to lowercase (irc). Closes #375
This commit is contained in:
		@@ -276,7 +276,7 @@ func (b *Birc) handleJoinPart(client *girc.Client, event girc.Event) {
 | 
				
			|||||||
		flog.Debugf("handleJoinPart: empty Params? %#v", event)
 | 
							flog.Debugf("handleJoinPart: empty Params? %#v", event)
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	channel := event.Params[0]
 | 
						channel := strings.ToLower(event.Params[0])
 | 
				
			||||||
	if event.Command == "KICK" {
 | 
						if event.Command == "KICK" {
 | 
				
			||||||
		flog.Infof("Got kicked from %s by %s", channel, event.Source.Name)
 | 
							flog.Infof("Got kicked from %s by %s", channel, event.Source.Name)
 | 
				
			||||||
		time.Sleep(time.Duration(b.Config.RejoinDelay) * time.Second)
 | 
							time.Sleep(time.Duration(b.Config.RejoinDelay) * time.Second)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user