Load OTR private key on connect, gen command checks if already generated

This commit is contained in:
James Booth
2014-01-11 15:48:22 +00:00
parent df8c7dedc1
commit 5c13538e6b
4 changed files with 115 additions and 38 deletions

View File

@@ -2294,7 +2294,7 @@ cmd_otr(gchar **args, struct cmd_help_t help)
if (strcmp(args[0], "gen") == 0) {
ProfAccount *account = accounts_get_account(jabber_get_account_name());
otr_account_load(account);
otr_keygen(account);
return TRUE;
} else if (strcmp(args[0], "fp") == 0) {
char *fingerprint = otr_get_fingerprint();