forked from External/ergo
fix #1552
ZNC playback LIST was panicking when history was disabled, and possibly in other cases
This commit is contained in:
parent
56bef19505
commit
1f3f9f18d9
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue