Quellcode durchsuchen

remove 'history' batch type

This was from ircv3-specifications #362, which is now obsolete.
tags/v2.2.0
Shivaram Lingamneni vor 3 Jahren
Ursprung
Commit
e6e55bbf29
1 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen
  1. 2
    4
      irc/responsebuffer.go

+ 2
- 4
irc/responsebuffer.go Datei anzeigen

@@ -25,7 +25,7 @@ const (
25 25
 type ResponseBuffer struct {
26 26
 	Label     string // label if this is a labeled response batch
27 27
 	batchID   string // ID of the labeled response batch, if one has been initiated
28
-	batchType string // type of the labeled response batch (possibly `history` or `chathistory`)
28
+	batchType string // type of the labeled response batch (currently either `labeled-response` or `chathistory`)
29 29
 
30 30
 	// stack of batch IDs of nested batches, which are handled separately
31 31
 	// from the underlying labeled-response batch. starting a new nested batch
@@ -200,9 +200,7 @@ func (rb *ResponseBuffer) EndNestedBatch(batchID string) {
200 200
 // supported by the client (`history`, `chathistory`, or no batch, in descending order).
201 201
 func (rb *ResponseBuffer) StartNestedHistoryBatch(params ...string) (batchID string) {
202 202
 	var batchType string
203
-	if rb.session.capabilities.Has(caps.EventPlayback) {
204
-		batchType = "history"
205
-	} else if rb.session.capabilities.Has(caps.Batch) {
203
+	if rb.session.capabilities.Has(caps.Batch) {
206 204
 		batchType = "chathistory"
207 205
 	}
208 206
 	if batchType != "" {

Laden…
Abbrechen
Speichern