From 956b5842a5ad7ef3b8506220af6f245e7cff9659 Mon Sep 17 00:00:00 2001 From: heavyjoost <99620290+heavyjoost@users.noreply.github.com> Date: Thu, 5 Sep 2024 15:56:40 -0600 Subject: [PATCH] feat: more numeric IRC reply constants (#71) * feat: add more numeric IRC reply constants * fix: use 336 and 337 for `RPL_INVITELIST` and `RPL_ENDOFINVITELIST` This is according to https://modern.ircdocs.horse/#rplinvitelist-336 and https://modern.ircdocs.horse/#rplendofinvitelist-337 --- constants.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/constants.go b/constants.go index d605808..dded682 100644 --- a/constants.go +++ b/constants.go @@ -139,6 +139,7 @@ const ( RPL_AWAY = "301" RPL_UNAWAY = "305" RPL_NOWAWAY = "306" + RPL_WHOISREGNICK = "307" RPL_WHOISUSER = "311" RPL_WHOISSERVER = "312" RPL_WHOISOPERATOR = "313" @@ -147,17 +148,22 @@ const ( RPL_WHOISCHANNELS = "319" RPL_WHOWASUSER = "314" RPL_ENDOFWHOWAS = "369" + RPL_WHOISSPECIAL = "320" RPL_LISTSTART = "321" RPL_LIST = "322" RPL_LISTEND = "323" //nolint:misspell // it's correct. RPL_UNIQOPIS = "325" RPL_CHANNELMODEIS = "324" + RPL_WHOISACCOUNT = "330" RPL_NOTOPIC = "331" RPL_TOPIC = "332" + RPL_INVITELIST = "336" + RPL_ENDOFINVITELIST = "337" + RPL_WHOISACTUALLY = "338" RPL_INVITING = "341" RPL_SUMMONING = "342" - RPL_INVITELIST = "346" - RPL_ENDOFINVITELIST = "347" + RPL_INVEXLIST = "346" + RPL_ENDOFINVEXLIST = "347" RPL_EXCEPTLIST = "348" RPL_ENDOFEXCEPTLIST = "349" RPL_VERSION = "351" @@ -174,6 +180,8 @@ const ( RPL_MOTDSTART = "375" RPL_MOTD = "372" RPL_ENDOFMOTD = "376" + RPL_WHOISHOST = "378" + RPL_WHOISMODES = "379" RPL_YOUREOPER = "381" RPL_REHASHING = "382" RPL_YOURESERVICE = "383" @@ -213,6 +221,7 @@ const ( RPL_ADMINLOC2 = "258" RPL_ADMINEMAIL = "259" RPL_TRYAGAIN = "263" + RPL_WHOISCERTFP = "276" ERR_NOSUCHNICK = "401" ERR_NOSUCHSERVER = "402" ERR_NOSUCHCHANNEL = "403"