Don't create new caps out of nowhere, dummy

This commit is contained in:
Daniel Oaks 2017-09-29 08:37:03 +10:00
parent ffe7375a68
commit c39206ad13
2 changed files with 1 additions and 4 deletions

View File

@ -32,8 +32,6 @@ const (
InviteNotify Capability = "invite-notify"
// MaxLine is this proposed capability: https://github.com/DanielOaks/ircv3-specifications/blob/master+line-lengths/extensions/line-lengths.md
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 Capability = "draft/message-tags-0.2"
// MultiPrefix is this IRCv3 capability: http://ircv3.net/specs/extensions/multi-prefix-3.1.html
@ -61,7 +59,6 @@ var (
EchoMessage: true,
ExtendedJoin: true,
InviteNotify: true,
MessageIDs: true,
// MaxLine is set during server startup
MessageTags: true,
MultiPrefix: true,

View File

@ -600,7 +600,7 @@ func (client *Client) SendFromClient(msgid string, from *Client, tags *map[strin
}
}
// attach message-id
if len(msgid) > 0 && client.capabilities[MessageIDs] {
if len(msgid) > 0 && client.capabilities[MessageTags] {
if tags == nil {
tags = ircmsg.MakeTags("draft/msgid", msgid)
} else {