3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00
ZNC playback LIST was panicking when history was disabled,
and possibly in other cases
This commit is contained in:
Shivaram Lingamneni 2021-02-21 15:29:19 -05:00
parent 56bef19505
commit 1f3f9f18d9

View File

@ -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
}