src/blist.c

changeset 10944
b6f61a32cacc
parent 10853
6ed47bace3a5
child 10945
28bef60177e7
--- 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;

mercurial