Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/disco.c @ 18124:f88c2a41200d
fix inital presence (fixes #1395)
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 17 Jun 2007 04:50:18 +0000 |
parents | 3d7129ac1de9 |
children | 7f23135d9b68 |
comparison
equal
deleted
inserted
replaced
18123:ca965dfd3875 | 18124:f88c2a41200d |
---|---|
224 if (!(js->server_caps & JABBER_CAP_GOOGLE_ROSTER)) { | 224 if (!(js->server_caps & JABBER_CAP_GOOGLE_ROSTER)) { |
225 /* If the server supports JABBER_CAP_GOOGLE_ROSTER; we will have already requested it */ | 225 /* If the server supports JABBER_CAP_GOOGLE_ROSTER; we will have already requested it */ |
226 jabber_roster_request(js); | 226 jabber_roster_request(js); |
227 } | 227 } |
228 | 228 |
229 /* Send initial presence; this will trigger receipt of presence for contacts on the roster */ | 229 /* when we get the roster back, we'll send our initial presence */ |
230 gpresence = purple_account_get_presence(js->gc->account); | |
231 status = purple_presence_get_active_status(gpresence); | |
232 jabber_presence_send(js->gc->account, status); | |
233 } | 230 } |
234 | 231 |
235 static void | 232 static void |
236 jabber_disco_server_info_result_cb(JabberStream *js, xmlnode *packet, gpointer data) | 233 jabber_disco_server_info_result_cb(JabberStream *js, xmlnode *packet, gpointer data) |
237 { | 234 { |