From 65e99b8a98b08d80b868a272699c72db0bb7fc0f Mon Sep 17 00:00:00 2001 From: NuclearW Date: Fri, 26 Sep 2014 14:29:33 -0400 Subject: [PATCH] Add ircv3.2 METADATA numerics to route_replies --- modules/route_replies.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/route_replies.cpp b/modules/route_replies.cpp index 087f3ba2..f0d86bc2 100644 --- a/modules/route_replies.cpp +++ b/modules/route_replies.cpp @@ -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[18]; + struct reply vReplies[19]; } vRouteReplies[] = { {"WHO", { {"402", true}, /* rfc1459 ERR_NOSUCHSERVER */ @@ -76,6 +76,7 @@ static const struct { {"671", false}, /* RPL_WHOISSECURE */ {"307", false}, /* RPL_WHOISREGNICK */ {"379", false}, /* RPL_WHOISMODES */ + {"760", false}, /* ircv3.2 RPL_WHOISKEYVALUE */ {"318", true}, /* rfc1459 RPL_ENDOFWHOIS */ {"401", true}, /* rfc1459 ERR_NOSUCHNICK */ {"402", true}, /* rfc1459 ERR_NOSUCHSERVER */ @@ -154,6 +155,16 @@ static const struct { {"446", true}, /* rfc1459 ERR_USERSDISABLED */ {NULL, true}, }}, + {"METADATA", { + {"761", false}, /* ircv3.2 RPL_KEYVALUE */ + {"762", true}, /* ircv3.2 RPL_METADATAEND */ + {"765", true}, /* ircv3.2 ERR_TARGETINVALID */ + {"766", true}, /* ircv3.2 ERR_NOMATCHINGKEYS */ + {"767", true}, /* ircv3.2 ERR_KEYINVALID */ + {"768", true}, /* ircv3.2 ERR_KEYNOTSET */ + {"769", true}, /* ircv3.2 ERR_KEYNOPERMISSION */ + {NULL, true}, + }}, // This is just a list of all possible /mode replies stuffed together. // Since there should never be more than one of these going on, this // should work fine and makes the code simpler.