mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-11 06:29:29 +01:00
commit
0e470763a2
@ -1050,7 +1050,8 @@ func (client *Client) replayPrivmsgHistory(rb *ResponseBuffer, items []history.I
|
|||||||
}
|
}
|
||||||
batchID = rb.StartNestedHistoryBatch(target)
|
batchID = rb.StartNestedHistoryBatch(target)
|
||||||
|
|
||||||
allowTags := rb.session.capabilities.Has(caps.EventPlayback)
|
hasEventPlayback := rb.session.capabilities.Has(caps.EventPlayback)
|
||||||
|
hasTags := rb.session.capabilities.Has(caps.MessageTags)
|
||||||
for _, item := range items {
|
for _, item := range items {
|
||||||
var command string
|
var command string
|
||||||
switch item.Type {
|
switch item.Type {
|
||||||
@ -1059,7 +1060,7 @@ func (client *Client) replayPrivmsgHistory(rb *ResponseBuffer, items []history.I
|
|||||||
case history.Notice:
|
case history.Notice:
|
||||||
command = "NOTICE"
|
command = "NOTICE"
|
||||||
case history.Tagmsg:
|
case history.Tagmsg:
|
||||||
if allowTags {
|
if hasEventPlayback && hasTags {
|
||||||
command = "TAGMSG"
|
command = "TAGMSG"
|
||||||
} else {
|
} else {
|
||||||
continue
|
continue
|
||||||
@ -1068,7 +1069,7 @@ func (client *Client) replayPrivmsgHistory(rb *ResponseBuffer, items []history.I
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
var tags map[string]string
|
var tags map[string]string
|
||||||
if allowTags {
|
if hasTags {
|
||||||
tags = item.Tags
|
tags = item.Tags
|
||||||
}
|
}
|
||||||
// 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
|
||||||
|
2
irctest
2
irctest
@ -1 +1 @@
|
|||||||
Subproject commit d741ab86d5f63782e746384a553f44b04a672ebb
|
Subproject commit 14435ce0e8af86d0d0be5d9eca35bf2ab9931b4f
|
Loading…
Reference in New Issue
Block a user