Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/usermood.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 | 979bab4c3bca |
children |
comparison
equal
deleted
inserted
replaced
32766:ea2b621fd3ba | 32767:2ec94166be43 |
---|---|
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) { |