mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
Don't create new caps out of nowhere, dummy
This commit is contained in:
parent
ffe7375a68
commit
c39206ad13
@ -32,8 +32,6 @@ const (
|
|||||||
InviteNotify Capability = "invite-notify"
|
InviteNotify Capability = "invite-notify"
|
||||||
// MaxLine is this proposed capability: https://github.com/DanielOaks/ircv3-specifications/blob/master+line-lengths/extensions/line-lengths.md
|
// MaxLine is this proposed capability: https://github.com/DanielOaks/ircv3-specifications/blob/master+line-lengths/extensions/line-lengths.md
|
||||||
MaxLine Capability = "draft/maxline"
|
MaxLine Capability = "draft/maxline"
|
||||||
// MessageIDs is this draft IRCv3 capability: http://ircv3.net/specs/extensions/message-ids.html
|
|
||||||
MessageIDs Capability = "draft/message-ids"
|
|
||||||
// MessageTags is this draft IRCv3 capability: http://ircv3.net/specs/core/message-tags-3.3.html
|
// MessageTags is this draft IRCv3 capability: http://ircv3.net/specs/core/message-tags-3.3.html
|
||||||
MessageTags Capability = "draft/message-tags-0.2"
|
MessageTags Capability = "draft/message-tags-0.2"
|
||||||
// MultiPrefix is this IRCv3 capability: http://ircv3.net/specs/extensions/multi-prefix-3.1.html
|
// MultiPrefix is this IRCv3 capability: http://ircv3.net/specs/extensions/multi-prefix-3.1.html
|
||||||
@ -61,7 +59,6 @@ var (
|
|||||||
EchoMessage: true,
|
EchoMessage: true,
|
||||||
ExtendedJoin: true,
|
ExtendedJoin: true,
|
||||||
InviteNotify: true,
|
InviteNotify: true,
|
||||||
MessageIDs: true,
|
|
||||||
// MaxLine is set during server startup
|
// MaxLine is set during server startup
|
||||||
MessageTags: true,
|
MessageTags: true,
|
||||||
MultiPrefix: true,
|
MultiPrefix: true,
|
||||||
|
@ -600,7 +600,7 @@ func (client *Client) SendFromClient(msgid string, from *Client, tags *map[strin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// attach message-id
|
// attach message-id
|
||||||
if len(msgid) > 0 && client.capabilities[MessageIDs] {
|
if len(msgid) > 0 && client.capabilities[MessageTags] {
|
||||||
if tags == nil {
|
if tags == nil {
|
||||||
tags = ircmsg.MakeTags("draft/msgid", msgid)
|
tags = ircmsg.MakeTags("draft/msgid", msgid)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user