Mercurial > pidgin
comparison libpurple/protocols/mxit/mxit.c @ 29385:de1aec9b9368
Display the "not-authorized" emblem if the MXit contact's subscription state
is not Both (ie, Pending, Rejected or Deleted).
author | andrew.victor@mxit.com |
---|---|
date | Mon, 18 Jan 2010 20:40:41 +0000 |
parents | 259bbfb423d4 |
children | 81ea740f92a4 |
comparison
equal
deleted
inserted
replaced
28825:ac6c2dda0eae | 29385:de1aec9b9368 |
---|---|
260 { | 260 { |
261 struct contact* contact = buddy->proto_data; | 261 struct contact* contact = buddy->proto_data; |
262 | 262 |
263 if ( !contact ) | 263 if ( !contact ) |
264 return NULL; | 264 return NULL; |
265 | |
266 /* subscription state is Pending, Rejected or Deleted */ | |
267 if ( contact->subtype != MXIT_SUBTYPE_BOTH ) | |
268 return "not-authorized"; | |
265 | 269 |
266 switch ( contact-> type ) { | 270 switch ( contact-> type ) { |
267 case MXIT_TYPE_JABBER : /* external contacts via MXit */ | 271 case MXIT_TYPE_JABBER : /* external contacts via MXit */ |
268 case MXIT_TYPE_MSN : | 272 case MXIT_TYPE_MSN : |
269 case MXIT_TYPE_YAHOO : | 273 case MXIT_TYPE_YAHOO : |