Merge pull request #1659 from glguy/route_replies_freenode

route_replies: Update to support freenode
This commit is contained in:
Alexey Sokolov
2019-05-29 08:25:46 +01:00
committed by GitHub
+6 -2
View File
@@ -25,7 +25,7 @@ struct reply {
// TODO this list is far from complete, no errors are handled
static const struct {
const char* szRequest;
struct reply vReplies[19];
struct reply vReplies[20];
} vRouteReplies[] = {
{"WHO",
{{"402", true}, /* rfc1459 ERR_NOSUCHSERVER */
@@ -65,11 +65,12 @@ static const struct {
{"313", false}, /* rfc1459 RPL_WHOISOPERATOR */
{"317", false}, /* rfc1459 RPL_WHOISIDLE */
{"319", false}, /* rfc1459 RPL_WHOISCHANNELS */
{"320", false}, /* unreal RPL_WHOISSPECIAL */
{"301", false}, /* rfc1459 RPL_AWAY */
{"276", false}, /* oftc-hybrid RPL_WHOISCERTFP */
{"330", false}, /* ratbox RPL_WHOISLOGGEDIN
aka ircu RPL_WHOISACCOUNT */
{"338", false}, /* RPL_WHOISACTUALLY -- "actually using host" */
{"338", false}, /* ircu RPL_WHOISACTUALLY -- "actually using host" */
{"378", false}, /* RPL_WHOISHOST -- real address of vhosts */
{"671", false}, /* RPL_WHOISSECURE */
{"307", false}, /* RPL_WHOISREGNICK */
@@ -97,6 +98,9 @@ static const struct {
{{"406", false}, /* rfc1459 ERR_WASNOSUCHNICK */
{"312", false}, /* rfc1459 RPL_WHOISSERVER */
{"314", false}, /* rfc1459 RPL_WHOWASUSER */
{"330", false}, /* ratbox RPL_WHOISLOGGEDIN
aka ircu RPL_WHOISACCOUNT */
{"338", false}, /* ircu RPL_WHOISACTUALLY -- "actually using host" */
{"369", true}, /* rfc1459 RPL_ENDOFWHOWAS */
{"431", true}, /* rfc1459 ERR_NONICKNAMEGIVEN */
{nullptr, true}}},