Mercurial > ~mikael > mcabber > hg
diff mcabber/src/jab_iq.c @ 1365:c7e709719c43
Small code cleanup
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 12 Nov 2007 19:27:55 +0100 |
parents | 0562106d20c1 |
children | 74b7621537d7 |
line wrap: on
line diff
--- a/mcabber/src/jab_iq.c Sun Nov 11 23:13:35 2007 +0100 +++ b/mcabber/src/jab_iq.c Mon Nov 12 19:27:55 2007 +0100 @@ -338,11 +338,9 @@ x = xmlnode_get_tag(xml_result, "query"); if (!x) return -1; + ns = xmlnode_get_attrib(x, "xmlns"); - if (!ns) - return -1; - - if (!strcmp(ns, NS_ROSTER)) // The check is probably useless... + if (ns && !strcmp(ns, NS_ROSTER)) handle_iq_roster(x); // Post-login stuff