From 658252948a9719c50a64e57c317e55de02c57721 Mon Sep 17 00:00:00 2001 From: NuclearW Date: Mon, 21 Jul 2014 18:58:00 -0400 Subject: [PATCH] Add numerics 307 and 379 to route_replies for whois UnrealIRCd (at least version Unreal3.2.10+) sends numerics 307 and 379 on whois if the client is an IRCop. These are non-rfc and they can be seen documented here: https://www.alien.net.au/irc/irc2numerics.html --- modules/route_replies.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/route_replies.cpp b/modules/route_replies.cpp index b30ecd6c..087f3ba2 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[16]; + struct reply vReplies[18]; } vRouteReplies[] = { {"WHO", { {"402", true}, /* rfc1459 ERR_NOSUCHSERVER */ @@ -74,6 +74,8 @@ static const struct { {"338", false}, /* RPL_WHOISACTUALLY -- "actually using host" */ {"378", false}, /* RPL_WHOISHOST -- real address of vhosts */ {"671", false}, /* RPL_WHOISSECURE */ + {"307", false}, /* RPL_WHOISREGNICK */ + {"379", false}, /* RPL_WHOISMODES */ {"318", true}, /* rfc1459 RPL_ENDOFWHOIS */ {"401", true}, /* rfc1459 ERR_NOSUCHNICK */ {"402", true}, /* rfc1459 ERR_NOSUCHSERVER */