From 1f3f9f18d96f5b0b659a1367bcee3f77ce0a65ae Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 21 Feb 2021 15:29:19 -0500 Subject: [PATCH] fix #1552 ZNC playback LIST was panicking when history was disabled, and possibly in other cases --- irc/znc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/irc/znc.go b/irc/znc.go index f0d5da6e..51749bfa 100644 --- a/irc/znc.go +++ b/irc/znc.go @@ -203,7 +203,9 @@ func zncPlaybackListHandler(client *Client, command string, params []string, rb nick := client.Nick() for _, channel := range client.Channels() { _, sequence, err := client.server.GetHistorySequence(channel, client, "") - if err != nil { + if sequence == nil { + continue + } else if err != nil { client.server.logger.Error("internal", "couldn't get history sequence for ZNC list", err.Error()) continue }