diff mcabber/src/jab_iq.c @ 684:3282276e7413

Switch IQ packet creation to the new IQ system Use iqs_new() instead of jutil_iqnew().
author Mikael Berthe <mikael@lilotux.net>
date Mon, 06 Feb 2006 20:02:09 +0100
parents c5e0d8c3f00c
children f033345d1315
line wrap: on
line diff
--- a/mcabber/src/jab_iq.c	Mon Feb 06 19:57:00 2006 +0100
+++ b/mcabber/src/jab_iq.c	Mon Feb 06 20:02:09 2006 +0100
@@ -144,10 +144,9 @@
 
 static void request_roster(void)
 {
-  xmlnode x = jutil_iqnew(JPACKET__GET, NS_ROSTER);
-  xmlnode_put_attrib(x, "id", "Roster1"); // XXX
-  jab_send(jc, x);
-  xmlnode_free(x);
+  iqs *iqn = iqs_new(JPACKET__GET, NS_ROSTER, "Roster", IQS_DEFAULT_TIMEOUT);
+  jab_send(jc, iqn->xmldata);
+  iqs_del(iqn->id); // XXX
 }
 
 static void handle_iq_roster(xmlnode x)