Mercurial > pidgin.yaz
comparison src/prpl.c @ 10052:eaec201b2688
[gaim-migrate @ 11013]
More rockin status stuff from Dave West!
Things are beginning to shape up quite well.
Dave, again, sorry it took me a week to get to this. Girl waits for no man.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 19 Sep 2004 21:19:55 +0000 |
parents | dcdda2857ca8 |
children | 6feef0a9098a |
comparison
equal
deleted
inserted
replaced
10051:0810288958ad | 10052:eaec201b2688 |
---|---|
268 const char *status_id, const char *attr_id, ...) | 268 const char *status_id, const char *attr_id, ...) |
269 { | 269 { |
270 GaimBuddy *buddy; | 270 GaimBuddy *buddy; |
271 GaimPresence *presence; | 271 GaimPresence *presence; |
272 GaimStatus *status; | 272 GaimStatus *status; |
273 GaimStatus *old_status; | |
273 | 274 |
274 g_return_if_fail(account != NULL); | 275 g_return_if_fail(account != NULL); |
275 g_return_if_fail(name != NULL); | 276 g_return_if_fail(name != NULL); |
276 g_return_if_fail(status_id != NULL); | 277 g_return_if_fail(status_id != NULL); |
277 g_return_if_fail(gaim_account_is_connected(account)); | 278 g_return_if_fail(gaim_account_is_connected(account)); |
278 | 279 |
279 if ((buddy = gaim_find_buddy(account, name)) == NULL) | 280 buddy = gaim_find_buddy(account, name); |
281 if (buddy == NULL) | |
280 return; | 282 return; |
281 | 283 |
282 presence = gaim_buddy_get_presence(buddy); | 284 presence = gaim_buddy_get_presence(buddy); |
283 status = gaim_presence_get_status(presence, status_id); | 285 status = gaim_presence_get_status(presence, status_id); |
284 | 286 |
298 } | 300 } |
299 | 301 |
300 va_end(args); | 302 va_end(args); |
301 } | 303 } |
302 | 304 |
305 old_status = gaim_presence_get_active_status(presence); | |
303 gaim_presence_set_status_active(presence, status_id, TRUE); | 306 gaim_presence_set_status_active(presence, status_id, TRUE); |
304 | 307 gaim_blist_update_buddy_status(buddy, old_status); |
305 gaim_blist_update_buddy_presence(buddy, GAIM_BUDDY_IS_ONLINE(buddy)); | |
306 gaim_contact_compute_priority_buddy(gaim_buddy_get_contact(buddy)); | |
307 } | 308 } |
308 | 309 |
309 void | 310 void |
310 gaim_prpl_got_user_warning_level(GaimAccount *account, const char *name, | 311 gaim_prpl_got_user_warning_level(GaimAccount *account, const char *name, |
311 unsigned int level) | 312 unsigned int level) |