diff src/blist.c @ 10944:4a4f2760a9ad

[gaim-migrate @ 12737] 0 is not a valid value for account->perm_deny. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 26 May 2005 13:04:41 +0000
parents 2409700be3dc
children 1ce8013f5642
line wrap: on
line diff
--- a/src/blist.c	Thu May 26 12:49:25 2005 +0000
+++ b/src/blist.c	Thu May 26 13:04:41 2005 +0000
@@ -561,6 +561,7 @@
 		for (anode = privacy->child; anode; anode = anode->next) {
 			xmlnode *x;
 			GaimAccount *account;
+			int imode;
 			const char *acct_name, *proto, *mode, *protocol;
 
 			acct_name = xmlnode_get_attrib(anode, "name");
@@ -576,7 +577,8 @@
 			if (!account)
 				continue;
 
-			account->perm_deny = atoi(mode);
+			imode = atoi(mode);
+			account->perm_deny = (imode != 0 ? imode : 1);
 
 			for (x = anode->child; x; x = x->next) {
 				char *name;