comparison libpurple/protocols/jabber/roster.c @ 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 c4fd9222dda1
comparison
equal deleted inserted replaced
25673:af2b883df9a3 25674:d3f9fe8330c7
259 /* if we're just now parsing the roster for the first time, 259 /* if we're just now parsing the roster for the first time,
260 * then now would be the time to declare ourselves connected and 260 * then now would be the time to declare ourselves connected and
261 * send our initial presence */ 261 * send our initial presence */
262 if(!js->roster_parsed) { 262 if(!js->roster_parsed) {
263 js->roster_parsed = TRUE; 263 js->roster_parsed = TRUE;
264 jabber_presence_send(js, TRUE);
264 jabber_stream_set_state(js, JABBER_STREAM_CONNECTED); 265 jabber_stream_set_state(js, JABBER_STREAM_CONNECTED);
265 jabber_presence_send(js, TRUE);
266 } 266 }
267 } 267 }
268 268
269 static void jabber_roster_update(JabberStream *js, const char *name, 269 static void jabber_roster_update(JabberStream *js, const char *name,
270 GSList *grps) 270 GSList *grps)