|
@@ -119,7 +119,12 @@ func (rb *ResponseBuffer) AddFromClient(time time.Time, msgid string, fromNickMa
|
119
|
119
|
// AddSplitMessageFromClient adds a new split message from a specific client to our queue.
|
120
|
120
|
func (rb *ResponseBuffer) AddSplitMessageFromClient(fromNickMask string, fromAccount string, tags map[string]string, command string, target string, message utils.SplitMessage) {
|
121
|
121
|
if message.Is512() {
|
122
|
|
- rb.AddFromClient(message.Time, message.Msgid, fromNickMask, fromAccount, tags, command, target, message.Message)
|
|
122
|
+ if message.Message == "" {
|
|
123
|
+ // XXX this is a TAGMSG
|
|
124
|
+ rb.AddFromClient(message.Time, message.Msgid, fromNickMask, fromAccount, tags, command, target)
|
|
125
|
+ } else {
|
|
126
|
+ rb.AddFromClient(message.Time, message.Msgid, fromNickMask, fromAccount, tags, command, target, message.Message)
|
|
127
|
+ }
|
123
|
128
|
} else {
|
124
|
129
|
if rb.session.capabilities.Has(caps.Multiline) {
|
125
|
130
|
batch := rb.session.composeMultilineBatch(fromNickMask, fromAccount, tags, command, target, message)
|