Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/usermood.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 |
---|---|
153 } | 153 } |
154 if (newmood != NULL && moodtext != NULL) | 154 if (newmood != NULL && moodtext != NULL) |
155 break; | 155 break; |
156 } | 156 } |
157 if (newmood != NULL) { | 157 if (newmood != NULL) { |
158 purple_prpl_got_user_status(js->gc->account, from, "mood", | 158 purple_prpl_got_user_status(purple_connection_get_account(js->gc), from, "mood", |
159 PURPLE_MOOD_NAME, newmood, | 159 PURPLE_MOOD_NAME, newmood, |
160 PURPLE_MOOD_COMMENT, moodtext, | 160 PURPLE_MOOD_COMMENT, moodtext, |
161 NULL); | 161 NULL); |
162 } else { | 162 } else { |
163 purple_prpl_got_user_status_deactive(js->gc->account, from, "mood"); | 163 purple_prpl_got_user_status_deactive(purple_connection_get_account(js->gc), from, "mood"); |
164 } | 164 } |
165 g_free(moodtext); | 165 g_free(moodtext); |
166 } | 166 } |
167 | 167 |
168 void jabber_mood_init(void) { | 168 void jabber_mood_init(void) { |