comparison libpurple/protocols/msn/contact.c @ 20442:a1c6206f0205

Make the MsnUser type an enum so we have fewer magic numbers
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 27 May 2007 21:13:37 +0000
parents 5ecaa00090d7
children 18ecdee88ed0
comparison
equal deleted inserted replaced
20441:9053156d016a 20442:a1c6206f0205
103 /*get User Type*/ 103 /*get User Type*/
104 static int 104 static int
105 msn_get_user_type(char * type) 105 msn_get_user_type(char * type)
106 { 106 {
107 if(!strcmp(type,"Regular")){ 107 if(!strcmp(type,"Regular")){
108 return 1; 108 return MSN_USER_TYPE_PASSPORT;
109 } 109 }
110 if(!strcmp(type,"Live")){ 110 if(!strcmp(type,"Live")){
111 return 1; 111 return MSN_USER_TYPE_PASSPORT;
112 } 112 }
113 if(!strcmp(type,"LivePending")){ 113 if(!strcmp(type,"LivePending")){
114 return 1; 114 return MSN_USER_TYPE_PASSPORT;
115 } 115 }
116 116
117 return 0; 117 return MSN_USER_TYPE_UNKNOWN;
118 } 118 }
119 119
120 /*parse contact list*/ 120 /*parse contact list*/
121 static void 121 static void
122 msn_parse_contact_list(MsnContact * contact) 122 msn_parse_contact_list(MsnContact * contact)