summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bridge/irc/irc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index 205e4ce4..e3191a93 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -234,6 +234,10 @@ 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)