comparison 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
comparison
equal deleted inserted replaced
1364:ff1f6facdc0c 1365:c7e709719c43
336 return 0; 336 return 0;
337 337
338 x = xmlnode_get_tag(xml_result, "query"); 338 x = xmlnode_get_tag(xml_result, "query");
339 if (!x) 339 if (!x)
340 return -1; 340 return -1;
341
341 ns = xmlnode_get_attrib(x, "xmlns"); 342 ns = xmlnode_get_attrib(x, "xmlns");
342 if (!ns) 343 if (ns && !strcmp(ns, NS_ROSTER))
343 return -1;
344
345 if (!strcmp(ns, NS_ROSTER)) // The check is probably useless...
346 handle_iq_roster(x); 344 handle_iq_roster(x);
347 345
348 // Post-login stuff 346 // Post-login stuff
349 jb_setprevstatus(); 347 jb_setprevstatus();
350 hook_execute_internal("hook-post-connect"); 348 hook_execute_internal("hook-post-connect");