aboutsummaryrefslogtreecommitdiffstats
path: root/otr.c
diff options
context:
space:
mode:
authorSven Moritz Hallberg <sm@khjk.org>2008-02-16 16:28:08 +0100
committerSven Moritz Hallberg <sm@khjk.org>2008-02-16 16:28:08 +0100
commit1221ef093f35d620123cab82aecf4bb7bcc2e86a (patch)
treeb26cb7030f08fd30f01c859c9749107463896df7 /otr.c
parent3064ea42452e7e069bce9fc132ceb8ae4d7d11b4 (diff)
show keys being generated in 'otr info'
Diffstat (limited to 'otr.c')
-rw-r--r--otr.c11
1 files 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 */