mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 14:16:21 +00:00
Renamed fingerprint command, updated help
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user