소스 검색

fix incorrect chathistory batch types

This was introduced in 38a6d17ee5
tags/v2.12.0-rc1
Shivaram Lingamneni 11 달 전
부모
커밋
f100c1d0fa
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    1
      irc/channel.go
  2. 1
    1
      irc/client.go

+ 1
- 1
irc/channel.go 파일 보기

@@ -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 파일 보기

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

Loading…
취소
저장