--- 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();