changeset 25674:d3f9fe8330c7

Send initial presence before declaring us connected (I like this a little better)
author Paul Aurich <paul@darkrain42.org>
date Tue, 10 Feb 2009 06:10:12 +0000
parents af2b883df9a3
children 6a369035fd20
files libpurple/protocols/jabber/roster.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/roster.c	Tue Feb 10 04:43:50 2009 +0000
+++ b/libpurple/protocols/jabber/roster.c	Tue Feb 10 06:10:12 2009 +0000
@@ -261,8 +261,8 @@
 	 * send our initial presence */
 	if(!js->roster_parsed) {
 		js->roster_parsed = TRUE;
+		jabber_presence_send(js, TRUE);
 		jabber_stream_set_state(js, JABBER_STREAM_CONNECTED);
-		jabber_presence_send(js, TRUE);
 	}
 }