pidgin.mxit: d2f394a6: Remove the "hidden" option from user pro...
andrew.victor at mxit.com
andrew.victor at mxit.com
Fri Aug 12 18:50:53 EDT 2011
----------------------------------------------------------------------
Revision: d2f394a684e78504cf7389cc0830dd90bd056f25
Parent: 98e69959e827695b8b3f7d824274dedf9d363032
Author: andrew.victor at mxit.com
Date: 08/12/11 18:44:39
Branch: im.pidgin.pidgin.mxit
URL: http://d.pidgin.im/viewmtn/revision/info/d2f394a684e78504cf7389cc0830dd90bd056f25
Changelog:
Remove the "hidden" option from user profile.
Changes against parent 98e69959e827695b8b3f7d824274dedf9d363032
patched libpurple/protocols/mxit/actions.c
patched libpurple/protocols/mxit/profile.h
patched libpurple/protocols/mxit/protocol.c
patched libpurple/protocols/mxit/protocol.h
-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/actions.c cdd0c52cbda316495e002c2741983adcbf92c00b
+++ libpurple/protocols/mxit/actions.c a64e7c436ed1f32947248704df7902519e21100d
@@ -84,13 +84,6 @@ out:
g_string_append( attributes, attrib );
acount++;
- /* force hidden if disabled */
- if ( profile->hidden == FALSE ) {
- g_snprintf( attrib, sizeof( attrib ), "\01%s\01%i\01%s", CP_PROFILE_HIDENUMBER, CP_PROFILE_TYPE_BOOL, "1" );
- g_string_append( attributes, attrib );
- acount++;
- }
-
/* update birthday */
g_strlcpy( profile->birthday, bday, sizeof( profile->birthday ) );
g_snprintf( attrib, sizeof( attrib ), "\01%s\01%i\01%s", CP_PROFILE_BIRTHDATE, CP_PROFILE_TYPE_UTF8, profile->birthday );
============================================================
--- libpurple/protocols/mxit/profile.h acfd17f2ccf5284e49ccccaa762a73c551f92f84
+++ libpurple/protocols/mxit/profile.h 7df18a1380a968cf4143d86a4b177436d4cf1182
@@ -50,7 +50,6 @@ struct MXitProfile {
int flags; /* user's profile flags */
gint64 lastonline; /* user's last-online timestamp */
- gboolean hidden; /* set if the user's mxitid should remain hidden */
};
struct MXitSession;
============================================================
--- libpurple/protocols/mxit/protocol.c b1112f35ca6f4a265d734861571f196774f014f7
+++ libpurple/protocols/mxit/protocol.c 6fa12cd9d7fa8e0ad5a91aba2e029e1dea2ee35e
@@ -1448,7 +1448,7 @@ static void mxit_parse_cmd_login( struct
PurpleStatus* status;
int presence;
const char* statusmsg;
- const char* profilelist[] = { CP_PROFILE_BIRTHDATE, CP_PROFILE_GENDER, CP_PROFILE_HIDENUMBER, CP_PROFILE_FULLNAME,
+ const char* profilelist[] = { CP_PROFILE_BIRTHDATE, CP_PROFILE_GENDER, CP_PROFILE_FULLNAME,
CP_PROFILE_TITLE, CP_PROFILE_FIRSTNAME, CP_PROFILE_LASTNAME, CP_PROFILE_EMAIL,
CP_PROFILE_MOBILENR, CP_PROFILE_WHEREAMI, CP_PROFILE_ABOUTME, CP_PROFILE_FLAGS };
@@ -1825,10 +1825,6 @@ static void mxit_parse_cmd_extprofile( s
/* gender */
profile->male = ( fvalue[0] == '1' );
}
- else if ( strcmp( CP_PROFILE_HIDENUMBER, fname ) == 0 ) {
- /* hide number */
- profile->hidden = ( fvalue[0] == '1' );
- }
else if ( strcmp( CP_PROFILE_FULLNAME, fname ) == 0 ) {
/* nickname */
g_strlcpy( profile->nickname, fvalue, sizeof( profile->nickname ) );
============================================================
--- libpurple/protocols/mxit/protocol.h b321444fe2576c1fde7c4549811fa44727b9b004
+++ libpurple/protocols/mxit/protocol.h f8c10dcf4d656f055ee0e9452e893b034a274f1e
@@ -182,7 +182,7 @@
/* extended profile attribute fields */
#define CP_PROFILE_BIRTHDATE "birthdate" /* Birthdate (String - ISO 8601 format) */
#define CP_PROFILE_GENDER "gender" /* Gender (Boolean - 0=female, 1=male) */
-#define CP_PROFILE_HIDENUMBER "hidenumber" /* Hide Number (Boolean - 0=false, 1=true) */
+// #define CP_PROFILE_HIDENUMBER "hidenumber" /* Hide Number (Boolean - 0=false, 1=true) (DEPRECATED) */
#define CP_PROFILE_FULLNAME "fullname" /* Fullname (UTF8 String) */
#define CP_PROFILE_STATUS "statusmsg" /* Status Message (UTF8 String) */
#define CP_PROFILE_PREVSTATUS "prevstatusmsgs" /* Previous Status Messages (UTF8 String) */
More information about the Commits
mailing list