Skip to content

Commit

Permalink
feat: more numeric IRC reply constants (#71)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
heavyjoost authored Sep 5, 2024
1 parent 80555f2 commit 956b584
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 956b584

Please sign in to comment.