From 1221ef093f35d620123cab82aecf4bb7bcc2e86a Mon Sep 17 00:00:00 2001 From: Sven Moritz Hallberg Date: Sat, 16 Feb 2008 16:28:08 +0100 Subject: show keys being generated in 'otr info' --- otr.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/otr.c b/otr.c index 15f4225a..460dcda0 100644 --- a/otr.c +++ b/otr.c @@ -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 */ -- cgit v1.2.3