Handle 330 correctly.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 16 Jun 2007 00:35:11 +0000 (02:35 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 16 Jun 2007 00:35:11 +0000 (02:35 +0200)
NEWS
src/irc.h
src/redirect.c

diff --git a/NEWS b/NEWS
index 8cb8219b4738add2973058fa3c9f3b3862f73fa7..a2e48285c781b9ad184ec5d326062b2f505ae85f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,8 @@ Ctrlproxy 3.0.3 UNRELEASED
 
        * Handle 263 response correctly. (#135)
 
+    * Handle 330 response correclty. (#137)
+
   INTERNALS
 
     * Use GIOChannels for reading the motd. 
index fd2456f76b4e88470fdeb5bc1813d7d35a556181..c884acd48329e7a5bee08f125191f4d82e51935f 100644 (file)
--- a/src/irc.h
+++ b/src/irc.h
@@ -90,6 +90,7 @@
 #define RPL_WHOISIDENTIFIED 320
 #define RPL_WHOWASUSER 314
 #define RPL_WHOWAS_TIME 330
+#define RPL_WHOISACCOUNT 330
 #define RPL_ENDOFWHOWAS 369
 #define RPL_LISTSTART 321
 #define RPL_LIST 322
index 8c98f1a89b16f68ae35bfe0242502136d1f83590..c94c7cae842c1a33666fa0bb6995513a72a587ca 100644 (file)
@@ -59,7 +59,7 @@ static struct query queries[] = {
                { RPL_WHOISUSER, RPL_WHOISCHANNELS, RPL_AWAY,
                  RPL_WHOISIDLE, RPL_WHOISCHANNELS, RPL_WHOISIP,
                  RPL_WHOISSERVER, RPL_WHOISOPERATOR, RPL_WHOISACTUALLY,
-                 RPL_WHOISIDENTIFIED, 0 }, 
+                 RPL_WHOISACCOUNT, RPL_WHOISIDENTIFIED, 0 }, 
                { RPL_ENDOFWHOIS, 0 }, 
                { ERR_NOSUCHSERVER, ERR_NONICKNAMEGIVEN, ERR_NOSUCHNICK, 0 },
                handle_default
@@ -100,7 +100,7 @@ static struct query queries[] = {
        
  /* WHOWAS <nickname> [<count> [<server>]]*/
        {"WHOWAS", 
-               { RPL_WHOWASUSER, RPL_WHOISSERVER, RPL_WHOWAS_TIME,  0 },
+               { RPL_WHOWASUSER, RPL_WHOISSERVER, RPL_WHOWAS_TIME, 0 },
                { RPL_ENDOFWHOWAS, 0 },
                { ERR_NONICKNAMEGIVEN, ERR_WASNOSUCHNICK, 0 },
                handle_default