Add support for 307 responses.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 15 Apr 2007 00:05:09 +0000 (02:05 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 15 Apr 2007 00:05:09 +0000 (02:05 +0200)
NEWS
src/irc.h
src/redirect.c

diff --git a/NEWS b/NEWS
index ff0a30a1507ce4bc4efb7ff0e6000656ac646aed..84cbf4a533575e474ede227a2bf70b8c9f05630a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -53,6 +53,8 @@ Ctrlproxy 3.0.2 UNRELEASED
 
        * Never send origin to the server (#122).
 
+       * Added support for 307 responses. 
+
   FEATURES
 
     * More advanced help support
index 9da36d8bfe656d3e418d186ae7443af1fe14caa1..1f16af40c9b152d3d85ff02c8c82d6110f78756f 100644 (file)
--- a/src/irc.h
+++ b/src/irc.h
@@ -79,6 +79,7 @@
 #define RPL_AWAY 301
 #define RPL_UNAWAY 305
 #define RPL_NOWAWAY 306
+#define RPL_WHOISIP 307
 #define RPL_WHOISUSER 311
 #define RPL_WHOISSERVER 312
 #define RPL_WHOISOPERATOR 313
index 01badc8eae10710f58b119b47ecf2eb29696d7ef..4dab70f31d4e88ac935458257d0812727fc2cd7e 100644 (file)
@@ -55,7 +55,7 @@ static struct query queries[] = {
  * WHOIS [<server>] <nickmask>[,<nickmask>[,...]] */
        {"WHOIS", 
                { RPL_WHOISUSER, RPL_WHOISCHANNELS, RPL_AWAY,
-                 RPL_WHOISIDLE, RPL_WHOISCHANNELS,
+                 RPL_WHOISIDLE, RPL_WHOISCHANNELS, RPL_WHOISIP,
                  RPL_WHOISSERVER, RPL_WHOISOPERATOR, RPL_WHOISACTUALLY,
                  RPL_WHOISIDENTIFIED, 0 }, 
                { RPL_ENDOFWHOIS, 0 }, 
@@ -165,7 +165,7 @@ static struct query queries[] = {
                { ERR_NOSUCHSERVER, ERR_FILEERROR, ERR_USERSDISABLED, 0 },
                handle_default
        },
-       
+
  /* USERHOST <nickname>{ <nickname>}{ ...}*/
        {"USERHOST",
                { 0 },