Cherry-pick r1909 from Joe Bormolini's branch:
authorJelmer Vernooij <jelmer@samba.org>
Wed, 18 Aug 2010 19:44:05 +0000 (21:44 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 18 Aug 2010 19:44:05 +0000 (21:44 +0200)
handle_005 was cutting off first data argument

handle_005 started at index 3 instead of 2 for parsing the data. arg[0]
== 005, arg[1] == mynick, arg[2+] == data.

NEWS
libirc/isupport.c

diff --git a/NEWS b/NEWS
index 0e50578e915bf1dcf547fb903d3c1de3885e43b0..17dc0e1d3297e947a398773dd376d28022bf514a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -35,6 +35,8 @@ Ctrlproxy 3.0.9 UNRELEASED
     * auto-away: when time limit set to <30, still register the client limit
       hooks instead of disabling auto away completely. (Joe Bormolini)
 
+    * Process first argument to 005 responses. (Joe Bormolini)
+
   FEATURES
 
     * Provide Python bindings for the main library code. Mainly used for 
index 3d2479be656b44e7f675caabcff96ba02180a227..4254abb3f4ab32c71895572bb0d3a5083352583d 100644 (file)
@@ -535,7 +535,7 @@ void handle_005(struct irc_network_state *s, const struct irc_line *l)
 
        g_assert(l->argc >= 1);
 
-       for (i = 3; i < l->argc-1; i++) 
+       for (i = 2; i < l->argc-1; i++) 
                network_info_parse(s->info, l->args[i]);
 }