1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Renamed fingerprint command, updated help

This commit is contained in:
James Booth 2014-01-11 18:29:37 +00:00
parent b5469e2e06
commit bc8532b79c
2 changed files with 7 additions and 6 deletions

View File

@ -570,11 +570,12 @@ static struct cmd_t command_defs[] =
{ "/otr", { "/otr",
cmd_otr, parse_args, 1, 2, NULL, cmd_otr, parse_args, 1, 2, NULL,
{ "/otr gen|fp", "Off The Record encryption commands.", { "/otr gen|myfp|start", "Off The Record encryption commands.",
{ "/otr gen|fp", { "/otr gen|myfp|start",
"-----------", "-------------------",
"gen - Load or create private key and fingerprints.", "gen - Generate your private key.",
"fp - Show your fingerprint.", "myfp - Show your fingerprint.",
"start - Start an OTR session with the current recipient.",
NULL } } }, NULL } } },
{ "/outtype", { "/outtype",

View File

@ -2311,7 +2311,7 @@ cmd_otr(gchar **args, struct cmd_help_t help)
ProfAccount *account = accounts_get_account(jabber_get_account_name()); ProfAccount *account = accounts_get_account(jabber_get_account_name());
otr_keygen(account); otr_keygen(account);
return TRUE; return TRUE;
} else if (strcmp(args[0], "fp") == 0) { } else if (strcmp(args[0], "myfp") == 0) {
char *fingerprint = otr_get_fingerprint(); char *fingerprint = otr_get_fingerprint();
cons_show("Your fingerprint: %s", fingerprint); cons_show("Your fingerprint: %s", fingerprint);
return TRUE; return TRUE;