Fix addition of : for PART and TOPIC.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 13 Apr 2009 11:54:25 +0000 (13:54 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 13 Apr 2009 11:54:25 +0000 (13:54 +0200)
libirc/line.c

index 9b9bdbdf58f204d6f9823ea7118eb5542c9fdf0c..1839b8a42b74bba4b461966b309934f90b2a53d5 100644 (file)
@@ -215,7 +215,7 @@ static gboolean requires_colon(const struct irc_line *l)
                return FALSE;
 
        if (!g_strcasecmp(l->args[0], "PART") || !g_strcasecmp(l->args[0], "TOPIC")) {
-        return (strchr(l->args[l->argc-1], ' ') != NULL);
+               return (l->argc > 2);
     }
 
        switch(c) {