diff options
| author | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-16 16:28:08 +0100 | 
|---|---|---|
| committer | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-16 16:28:08 +0100 | 
| commit | 1221ef093f35d620123cab82aecf4bb7bcc2e86a (patch) | |
| tree | b26cb7030f08fd30f01c859c9749107463896df7 | |
| parent | 3064ea42452e7e069bce9fc132ceb8ae4d7d11b4 (diff) | |
show keys being generated in 'otr info'
| -rw-r--r-- | otr.c | 11 | 
1 files changed, 9 insertions, 2 deletions
| @@ -1421,11 +1421,18 @@ void show_general_otr_info(irc_t *irc)  		if(hash) /* should always succeed */  			irc_usermsg(irc, "    %s", human);  	} +	if(irc->otr->sent_accountname) { +		irc_usermsg(irc, "  %s/%s - DSA", irc->otr->sent_accountname, +			irc->otr->sent_protocol); +		irc_usermsg(irc, "    (being generated)"); +	}  	for(kg=irc->otr->todo; kg; kg=kg->next) {  		irc_usermsg(irc, "  %s/%s - DSA", kg->accountname, kg->protocol); -		irc_usermsg(irc, "    (being generated)"); +		irc_usermsg(irc, "    (queued)");  	} -	if(key == irc->otr->us->privkey_root && kg == irc->otr->todo) +	if(key == irc->otr->us->privkey_root && +	   !irc->otr->sent_accountname && +	   kg == irc->otr->todo)  		irc_usermsg(irc, "  (none)");  	/* list all contexts */ | 
