gaim/gaim

bleeter fixed a bug in his privacy patch
oldstatus
2005-03-17, Tim Ringenbach
a7fd3c1a75f2
Parents f7f073ae0589
Children a2c275079ba4
bleeter fixed a bug in his privacy patch
--- a/src/protocols/yahoo/yahoo.c Thu Mar 17 00:17:05 2005 -0500
+++ b/src/protocols/yahoo/yahoo.c Thu Mar 17 06:13:45 2005 -0500
@@ -70,14 +70,18 @@
gaim_privacy_permit_remove(gc->account,who,TRUE);
}
-gboolean yahoo_check_privacy
- (GaimConnection *gc, const char *who)
+gboolean yahoo_check_privacy(GaimConnection *gc, const char *who)
{
/* returns TRUE if allowed through, FALSE otherwise */
GSList *list;
gboolean permitted=FALSE;
- switch ( gc->account->perm_deny ) {
+ switch (gc->account->perm_deny) {
+ /* it would appear somewhere inside gaim, GAIM_PRIVACY can end up
+ * being set to 0 */
+ case 0:
+ permitted = TRUE;
+ break;
case GAIM_PRIVACY_ALLOW_ALL:
permitted = TRUE;
break;