From 7d3c0f78840b4156d6265e769546db86135bad68 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 27 Jan 2020 21:10:16 -0500 Subject: [PATCH] fix #757 --- gencapdefs.py | 4 ++-- irc/caps/constants.go | 2 +- irc/caps/defs.go | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gencapdefs.py b/gencapdefs.py index 1c65e71c..3f14625d 100644 --- a/gencapdefs.py +++ b/gencapdefs.py @@ -71,9 +71,9 @@ CAPDEFS = [ ), CapDef( identifier="LabeledResponse", - name="draft/labeled-response-0.2", + name="labeled-response", url="https://ircv3.net/specs/extensions/labeled-response.html", - standard="draft IRCv3", + standard="IRCv3", ), CapDef( identifier="Languages", diff --git a/irc/caps/constants.go b/irc/caps/constants.go index 845d1116..324f443c 100644 --- a/irc/caps/constants.go +++ b/irc/caps/constants.go @@ -54,7 +54,7 @@ const ( const ( // LabelTagName is the tag name used for the labeled-response spec. // https://ircv3.net/specs/extensions/labeled-response.html - LabelTagName = "draft/label" + LabelTagName = "label" // More draft names associated with draft/multiline: MultilineBatchType = "draft/multiline" MultilineConcatTag = "draft/multiline-concat" diff --git a/irc/caps/defs.go b/irc/caps/defs.go index 70712283..da2ae597 100644 --- a/irc/caps/defs.go +++ b/irc/caps/defs.go @@ -41,10 +41,6 @@ const ( // https://github.com/ircv3/ircv3-specifications/pull/362 EventPlayback Capability = iota - // LabeledResponse is the draft IRCv3 capability named "draft/labeled-response-0.2": - // https://ircv3.net/specs/extensions/labeled-response.html - LabeledResponse Capability = iota - // Languages is the proposed IRCv3 capability named "draft/languages": // https://gist.github.com/DanielOaks/8126122f74b26012a3de37db80e4e0c6 Languages Capability = iota @@ -77,6 +73,10 @@ const ( // https://ircv3.net/specs/extensions/invite-notify-3.2.html InviteNotify Capability = iota + // LabeledResponse is the IRCv3 capability named "labeled-response": + // https://ircv3.net/specs/extensions/labeled-response.html + LabeledResponse Capability = iota + // MessageTags is the IRCv3 capability named "message-tags": // https://ircv3.net/specs/extensions/message-tags.html MessageTags Capability = iota @@ -128,7 +128,6 @@ var ( "cap-notify", "chghost", "draft/event-playback", - "draft/labeled-response-0.2", "draft/languages", "draft/multiline", "draft/rename", @@ -137,6 +136,7 @@ var ( "echo-message", "extended-join", "invite-notify", + "labeled-response", "message-tags", "multi-prefix", "oragono.io/bnc",