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:
parent
b5469e2e06
commit
bc8532b79c
@ -570,11 +570,12 @@ static struct cmd_t command_defs[] =
|
||||
|
||||
{ "/otr",
|
||||
cmd_otr, parse_args, 1, 2, NULL,
|
||||
{ "/otr gen|fp", "Off The Record encryption commands.",
|
||||
{ "/otr gen|fp",
|
||||
"-----------",
|
||||
"gen - Load or create private key and fingerprints.",
|
||||
"fp - Show your fingerprint.",
|
||||
{ "/otr gen|myfp|start", "Off The Record encryption commands.",
|
||||
{ "/otr gen|myfp|start",
|
||||
"-------------------",
|
||||
"gen - Generate your private key.",
|
||||
"myfp - Show your fingerprint.",
|
||||
"start - Start an OTR session with the current recipient.",
|
||||
NULL } } },
|
||||
|
||||
{ "/outtype",
|
||||
|
@ -2311,7 +2311,7 @@ cmd_otr(gchar **args, struct cmd_help_t help)
|
||||
ProfAccount *account = accounts_get_account(jabber_get_account_name());
|
||||
otr_keygen(account);
|
||||
return TRUE;
|
||||
} else if (strcmp(args[0], "fp") == 0) {
|
||||
} else if (strcmp(args[0], "myfp") == 0) {
|
||||
char *fingerprint = otr_get_fingerprint();
|
||||
cons_show("Your fingerprint: %s", fingerprint);
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user