|
@@ -975,7 +975,6 @@ func (channel *Channel) SendSplitMessage(command string, minPrefixMode modes.Mod
|
975
|
975
|
nickmask := client.NickMaskString()
|
976
|
976
|
account := client.AccountName()
|
977
|
977
|
chname := channel.Name()
|
978
|
|
- now := time.Now().UTC()
|
979
|
978
|
|
980
|
979
|
// STATUSMSG targets are prefixed with the supplied min-prefix, e.g., @#channel
|
981
|
980
|
if minPrefixMode != modes.Mode(0) {
|
|
@@ -983,7 +982,6 @@ func (channel *Channel) SendSplitMessage(command string, minPrefixMode modes.Mod
|
983
|
982
|
}
|
984
|
983
|
|
985
|
984
|
// send echo-message
|
986
|
|
- // TODO this should use `now` as the time for consistency
|
987
|
985
|
if rb.session.capabilities.Has(caps.EchoMessage) {
|
988
|
986
|
var tagsToUse map[string]string
|
989
|
987
|
if rb.session.capabilities.Has(caps.MessageTags) {
|
|
@@ -1005,9 +1003,9 @@ func (channel *Channel) SendSplitMessage(command string, minPrefixMode modes.Mod
|
1005
|
1003
|
tagsToUse = clientOnlyTags
|
1006
|
1004
|
}
|
1007
|
1005
|
if histType == history.Tagmsg && session.capabilities.Has(caps.MessageTags) {
|
1008
|
|
- session.sendFromClientInternal(false, now, message.Msgid, nickmask, account, tagsToUse, command, chname)
|
|
1006
|
+ session.sendFromClientInternal(false, message.Time, message.Msgid, nickmask, account, tagsToUse, command, chname)
|
1009
|
1007
|
} else {
|
1010
|
|
- session.sendSplitMsgFromClientInternal(false, now, nickmask, account, tagsToUse, command, chname, message)
|
|
1008
|
+ session.sendSplitMsgFromClientInternal(false, nickmask, account, tagsToUse, command, chname, message)
|
1011
|
1009
|
}
|
1012
|
1010
|
}
|
1013
|
1011
|
|
|
@@ -1030,9 +1028,9 @@ func (channel *Channel) SendSplitMessage(command string, minPrefixMode modes.Mod
|
1030
|
1028
|
}
|
1031
|
1029
|
|
1032
|
1030
|
if histType == history.Tagmsg {
|
1033
|
|
- session.sendFromClientInternal(false, now, message.Msgid, nickmask, account, tagsToUse, command, chname)
|
|
1031
|
+ session.sendFromClientInternal(false, message.Time, message.Msgid, nickmask, account, tagsToUse, command, chname)
|
1034
|
1032
|
} else {
|
1035
|
|
- session.sendSplitMsgFromClientInternal(false, now, nickmask, account, tagsToUse, command, chname, message)
|
|
1033
|
+ session.sendSplitMsgFromClientInternal(false, nickmask, account, tagsToUse, command, chname, message)
|
1036
|
1034
|
}
|
1037
|
1035
|
}
|
1038
|
1036
|
}
|