# HG changeset patch # User Mikael Berthe # Date 1134684502 -3600 # Node ID 789ec6aed764af07559faae91c5b9e2cc8310dc0 # Parent ad737139a14463f6de3d9dfe5eb03d5cabcd650e Respect RFC 3921 order advice diff -r ad737139a144 -r 789ec6aed764 mcabber/src/jabglue.c --- a/mcabber/src/jabglue.c Thu Dec 15 22:35:34 2005 +0100 +++ b/mcabber/src/jabglue.c Thu Dec 15 23:08:22 2005 +0100 @@ -423,10 +423,6 @@ // We don't check if the jabber user already exists in the roster, // because it allows to re-ask for notification. - x = jutil_presnew(JPACKET__SUBSCRIBE, cleanjid, NULL); - jab_send(jc, x); - xmlnode_free(x); - x = jutil_iqnew(JPACKET__SET, NS_ROSTER); y = xmlnode_get_tag(x, "query"); z = xmlnode_insert_tag(y, "item"); @@ -449,6 +445,10 @@ jab_send(jc, x); xmlnode_free(x); + x = jutil_presnew(JPACKET__SUBSCRIBE, cleanjid, NULL); + jab_send(jc, x); + xmlnode_free(x); + roster_add_user(cleanjid, name, group, ROSTER_TYPE_USER, sub_pending); g_free(cleanjid); buddylist_build();