Thumbnail

rani/matterbridge.git

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

commit 62d87bf1c9aa20c234c21c52b6bd6dff58492d05 Author: Wim <wim@42.be> Date: Thu Oct 26 22:07:57 2017 +0000 Fix panic on empty params diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 205e4ce..e3191a9 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -2346 +23410 @@ func (b *Birc) handleNewConnection(client *girc.Client, event girc.Event) {  }    func (b *Birc) handleJoinPart(client *girc.Client, event girc.Event) { + if len(event.Params) == 0 { + flog.Debugf("handleJoinPart: empty Params? %#v", event) + return + }   channel := event.Params[0]   if event.Command == "KICK" {   flog.Infof("Got kicked from %s by %s", channel, event.Source.Name)