Parcourir la source

fix incorrect chathistory batch types

This was introduced in 38a6d17ee5
tags/v2.12.0-rc1
Shivaram Lingamneni il y a 1 an
Parent
révision
f100c1d0fa
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1
    1
      irc/channel.go
  2. 1
    1
      irc/client.go

+ 1
- 1
irc/channel.go Voir le fichier

@@ -1059,7 +1059,7 @@ func (channel *Channel) replayHistoryItems(rb *ResponseBuffer, items []history.I
1059 1059
 		}
1060 1060
 	}
1061 1061
 
1062
-	batchID := rb.StartNestedBatch(chname, "chathistory")
1062
+	batchID := rb.StartNestedBatch("chathistory", chname)
1063 1063
 	defer rb.EndNestedBatch(batchID)
1064 1064
 
1065 1065
 	for _, item := range items {

+ 1
- 1
irc/client.go Voir le fichier

@@ -850,7 +850,7 @@ func (client *Client) replayPrivmsgHistory(rb *ResponseBuffer, items []history.I
850 850
 	if target == "" {
851 851
 		target = nick
852 852
 	}
853
-	batchID = rb.StartNestedBatch(target, "chathistory")
853
+	batchID = rb.StartNestedBatch("chathistory", target)
854 854
 
855 855
 	isSelfMessage := func(item *history.Item) bool {
856 856
 		// XXX: Params[0] is the message target. if the source of this message is an in-memory

Chargement…
Annuler
Enregistrer