mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-04 12:11:55 -07:00
fix incorrect chathistory batch types
This was introduced in 38a6d17ee5
This commit is contained in:
+1
-1
@@ -1059,7 +1059,7 @@ func (channel *Channel) replayHistoryItems(rb *ResponseBuffer, items []history.I
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
batchID := rb.StartNestedBatch(chname, "chathistory")
|
batchID := rb.StartNestedBatch("chathistory", chname)
|
||||||
defer rb.EndNestedBatch(batchID)
|
defer rb.EndNestedBatch(batchID)
|
||||||
|
|
||||||
for _, item := range items {
|
for _, item := range items {
|
||||||
|
|||||||
+1
-1
@@ -850,7 +850,7 @@ func (client *Client) replayPrivmsgHistory(rb *ResponseBuffer, items []history.I
|
|||||||
if target == "" {
|
if target == "" {
|
||||||
target = nick
|
target = nick
|
||||||
}
|
}
|
||||||
batchID = rb.StartNestedBatch(target, "chathistory")
|
batchID = rb.StartNestedBatch("chathistory", target)
|
||||||
|
|
||||||
isSelfMessage := func(item *history.Item) bool {
|
isSelfMessage := func(item *history.Item) bool {
|
||||||
// XXX: Params[0] is the message target. if the source of this message is an in-memory
|
// XXX: Params[0] is the message target. if the source of this message is an in-memory
|
||||||
|
|||||||
Reference in New Issue
Block a user