Mercurial > pidgin.yaz
comparison libpurple/protocols/mxit/actions.c @ 31955:17875962a0a0
MXit servers updated, so we can now enable updating of the "About Me" and
"Where I Live" profile attributes.
author | andrew.victor@mxit.com |
---|---|
date | Mon, 11 Apr 2011 21:00:18 +0000 |
parents | dde6f5770cd0 |
children | cce18a0ff43a |
comparison
equal
deleted
inserted
replaced
31954:516435ac46a7 | 31955:17875962a0a0 |
---|---|
184 g_strlcpy( profile->mobilenr, name, sizeof( profile->mobilenr ) ); | 184 g_strlcpy( profile->mobilenr, name, sizeof( profile->mobilenr ) ); |
185 g_snprintf( attrib, sizeof( attrib ), "\01%s\01%i\01%s", CP_PROFILE_MOBILENR, CP_PROFILE_TYPE_UTF8, profile->mobilenr ); | 185 g_snprintf( attrib, sizeof( attrib ), "\01%s\01%i\01%s", CP_PROFILE_MOBILENR, CP_PROFILE_TYPE_UTF8, profile->mobilenr ); |
186 g_string_append( attributes, attrib ); | 186 g_string_append( attributes, attrib ); |
187 acount++; | 187 acount++; |
188 | 188 |
189 #if 0 | |
190 /* update about me */ | 189 /* update about me */ |
191 name = purple_request_fields_get_string( fields, "aboutme" ); | 190 name = purple_request_fields_get_string( fields, "aboutme" ); |
192 if ( !name ) | 191 if ( !name ) |
193 profile->aboutme[0] = '\0'; | 192 profile->aboutme[0] = '\0'; |
194 else | 193 else |
204 else | 203 else |
205 g_strlcpy( profile->whereami, name, sizeof( profile->whereami ) ); | 204 g_strlcpy( profile->whereami, name, sizeof( profile->whereami ) ); |
206 g_snprintf( attrib, sizeof( attrib ), "\01%s\01%i\01%s", CP_PROFILE_WHEREAMI, CP_PROFILE_TYPE_UTF8, profile->whereami ); | 205 g_snprintf( attrib, sizeof( attrib ), "\01%s\01%i\01%s", CP_PROFILE_WHEREAMI, CP_PROFILE_TYPE_UTF8, profile->whereami ); |
207 g_string_append( attributes, attrib ); | 206 g_string_append( attributes, attrib ); |
208 acount++; | 207 acount++; |
209 #endif | |
210 | 208 |
211 /* update flags */ | 209 /* update flags */ |
212 field = purple_request_fields_get_field( fields, "searchable" ); | 210 field = purple_request_fields_get_field( fields, "searchable" ); |
213 if ( purple_request_field_bool_get_value( field ) ) /* is searchable -> clear not-searchable flag */ | 211 if ( purple_request_field_bool_get_value( field ) ) /* is searchable -> clear not-searchable flag */ |
214 profile->flags &= ~CP_PROF_NOT_SEARCHABLE; | 212 profile->flags &= ~CP_PROF_NOT_SEARCHABLE; |
473 action = purple_plugin_action_new( _( "Search for Users..." ), mxit_cb_search_begin ); | 471 action = purple_plugin_action_new( _( "Search for Users..." ), mxit_cb_search_begin ); |
474 m = g_list_append( m, action ); | 472 m = g_list_append( m, action ); |
475 | 473 |
476 return m; | 474 return m; |
477 } | 475 } |
478 |