Ver código fonte

fix #1552

ZNC playback LIST was panicking when history was disabled,
and possibly in other cases
tags/v2.6.0-rc1
Shivaram Lingamneni 3 anos atrás
pai
commit
1f3f9f18d9
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3
    1
      irc/znc.go

+ 3
- 1
irc/znc.go Ver arquivo

@@ -203,7 +203,9 @@ func zncPlaybackListHandler(client *Client, command string, params []string, rb
203 203
 	nick := client.Nick()
204 204
 	for _, channel := range client.Channels() {
205 205
 		_, sequence, err := client.server.GetHistorySequence(channel, client, "")
206
-		if err != nil {
206
+		if sequence == nil {
207
+			continue
208
+		} else if err != nil {
207 209
 			client.server.logger.Error("internal", "couldn't get history sequence for ZNC list", err.Error())
208 210
 			continue
209 211
 		}

Carregando…
Cancelar
Salvar