comparison libpurple/protocols/mxit/profile.c @ 29999:207662bad69c

* Show the buddy's registration country in their profile. * We cannot see the buddy's current "hidden number" setting in their profile, so we need to use the value they had set when they invited us.
author andrew.victor@mxit.com
date Wed, 19 May 2010 20:29:31 +0000
parents 26e4c9dcb1e1
children b6b0c80f9dde
comparison
equal deleted inserted replaced
29998:26e4c9dcb1e1 29999:207662bad69c
121 } 121 }
122 122
123 purple_notify_user_info_add_pair( info, _( "Nick Name" ), profile->nickname ); 123 purple_notify_user_info_add_pair( info, _( "Nick Name" ), profile->nickname );
124 purple_notify_user_info_add_pair( info, _( "Birthday" ), profile->birthday ); 124 purple_notify_user_info_add_pair( info, _( "Birthday" ), profile->birthday );
125 purple_notify_user_info_add_pair( info, _( "Gender" ), profile->male ? _( "Male" ) : _( "Female" ) ); 125 purple_notify_user_info_add_pair( info, _( "Gender" ), profile->male ? _( "Male" ) : _( "Female" ) );
126 purple_notify_user_info_add_pair( info, _( "Hidden Number" ), profile->hidden ? _( "Yes" ) : _( "No" ) ); 126 // purple_notify_user_info_add_pair( info, _( "Hidden Number" ), profile->hidden ? _( "Yes" ) : _( "No" ) );
127 127
128 /* optional information */ 128 /* optional information */
129 // purple_notify_user_info_add_pair( info, _( "Title" ), profile->title ); 129 // purple_notify_user_info_add_pair( info, _( "Title" ), profile->title );
130 purple_notify_user_info_add_pair( info, _( "First Name" ), profile->firstname ); 130 purple_notify_user_info_add_pair( info, _( "First Name" ), profile->firstname );
131 purple_notify_user_info_add_pair( info, _( "Last Name" ), profile->lastname ); 131 purple_notify_user_info_add_pair( info, _( "Last Name" ), profile->lastname );
132 // purple_notify_user_info_add_pair( info, _( "Email" ), profile->email ); 132 // purple_notify_user_info_add_pair( info, _( "Email" ), profile->email );
133 purple_notify_user_info_add_pair( info, _( "Country" ), profile->regcountry );
133 134
134 purple_notify_user_info_add_section_break( info ); 135 purple_notify_user_info_add_section_break( info );
135 136
136 if ( contact ) { 137 if ( contact ) {
137 /* presence */ 138 /* presence */
147 if ( contact->statusMsg ) 148 if ( contact->statusMsg )
148 purple_notify_user_info_add_pair( info, _( "Status Message" ), contact->statusMsg ); 149 purple_notify_user_info_add_pair( info, _( "Status Message" ), contact->statusMsg );
149 150
150 /* subscription type */ 151 /* subscription type */
151 purple_notify_user_info_add_pair( info, _( "Subscription" ), mxit_convert_subtype_to_name( contact->subtype ) ); 152 purple_notify_user_info_add_pair( info, _( "Subscription" ), mxit_convert_subtype_to_name( contact->subtype ) );
153
154 /* hidden number */
155 purple_notify_user_info_add_pair( info, _( "Hidden Number" ), ( contact->flags & MXIT_CFLAG_HIDDEN ) ? _( "Yes" ) : _( "No" ) );
156
152 } 157 }
153 158
154 purple_notify_userinfo( session->con, username, info, NULL, NULL ); 159 purple_notify_userinfo( session->con, username, info, NULL, NULL );
155 purple_notify_user_info_destroy( info ); 160 purple_notify_user_info_destroy( info );
156 } 161 }