mlmmj

changeset c7d0a386aef5

Only check for submod when we need to know (Franky Van Liedekerke)
author Ben Schmidt
date Wed, 20 Oct 2010 11:39:58 +1100
parents dbb144f085a5
children dd5b87ddd51e
files src/mlmmj-sub.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/src/mlmmj-sub.c	Mon Oct 18 09:59:24 2010 +1100
     1.2 +++ b/src/mlmmj-sub.c	Wed Oct 20 11:39:58 2010 +1100
     1.3 @@ -682,8 +682,6 @@
     1.4  	}
     1.5  	subbed = is_subbed_in(subddirname, address);
     1.6  	listdelim = getlistdelim(listdir);
     1.7 -	if(modstr == NULL)
     1.8 -		submod = !force && statctrl(listdir, "submod");
     1.9  	
    1.10  	if(subbed) {
    1.11  		if(subconfirm) {
    1.12 @@ -694,6 +692,8 @@
    1.13  			generate_subconfirm(listdir, listaddr, listdelim,
    1.14  					    address, mlmmjsend, typesub);
    1.15  		} else {
    1.16 +			if(modstr == NULL)
    1.17 +				submod = !force && statctrl(listdir, "submod");
    1.18  			if(submod) {
    1.19  				close(subfilefd);
    1.20  				close(sublockfd);