Merge pull request #1553 from slingamn/zncpanic

fix #1552
This commit is contained in:
Shivaram Lingamneni 2021-02-21 16:00:01 -05:00 committed by GitHub
commit 08eabea78f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -203,7 +203,9 @@ func zncPlaybackListHandler(client *Client, command string, params []string, rb
nick := client.Nick() nick := client.Nick()
for _, channel := range client.Channels() { for _, channel := range client.Channels() {
_, sequence, err := client.server.GetHistorySequence(channel, client, "") _, 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()) client.server.logger.Error("internal", "couldn't get history sequence for ZNC list", err.Error())
continue continue
} }