Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/google/google_presence.c @ 32767:2ec94166be43
On the way to hiding the PurpleConnection struct.
* Added purple_connection_get_flags() and purple_connection_set_flags()
* Use purple_connection_ accessor functions.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 18 Oct 2011 18:47:48 +0000 |
parents | 34f586bffe4e |
children |
comparison
equal
deleted
inserted
replaced
32766:ea2b621fd3ba | 32767:2ec94166be43 |
---|---|
25 void jabber_google_presence_incoming(JabberStream *js, const char *user, JabberBuddyResource *jbr) | 25 void jabber_google_presence_incoming(JabberStream *js, const char *user, JabberBuddyResource *jbr) |
26 { | 26 { |
27 if (!js->googletalk) | 27 if (!js->googletalk) |
28 return; | 28 return; |
29 if (jbr->status && purple_str_has_prefix(jbr->status, "♫ ")) { | 29 if (jbr->status && purple_str_has_prefix(jbr->status, "♫ ")) { |
30 purple_prpl_got_user_status(js->gc->account, user, "tune", | 30 purple_prpl_got_user_status(purple_connection_get_account(js->gc), user, "tune", |
31 PURPLE_TUNE_TITLE, jbr->status + strlen("♫ "), NULL); | 31 PURPLE_TUNE_TITLE, jbr->status + strlen("♫ "), NULL); |
32 g_free(jbr->status); | 32 g_free(jbr->status); |
33 jbr->status = NULL; | 33 jbr->status = NULL; |
34 } else { | 34 } else { |
35 purple_prpl_got_user_status_deactive(js->gc->account, user, "tune"); | 35 purple_prpl_got_user_status_deactive(purple_connection_get_account(js->gc), user, "tune"); |
36 } | 36 } |
37 } | 37 } |
38 | 38 |
39 char *jabber_google_presence_outgoing(PurpleStatus *tune) | 39 char *jabber_google_presence_outgoing(PurpleStatus *tune) |
40 { | 40 { |