Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/google/google_presence.c @ 32827:4a34689eeb33 default tip
merged from im.pidgin.pidgin
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 19 Nov 2011 14:42:54 +0900 |
parents | 2ec94166be43 |
children |
comparison
equal
deleted
inserted
replaced
32692:0f94ec89f0bc | 32827:4a34689eeb33 |
---|---|
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 { |