diff options
author | James Booth <boothj5@gmail.com> | 2014-01-11 18:29:37 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-01-11 18:29:37 +0000 |
commit | bc8532b79cfa453df4da2fb0464d4106c48e8986 (patch) | |
tree | e4cc87caadbe10bc2ffffeac50960d4e70f061c3 | |
parent | b5469e2e06523c4ba71a7a215041080c89bb6763 (diff) | |
download | profani-tty-bc8532b79cfa453df4da2fb0464d4106c48e8986.tar.gz |
Renamed fingerprint command, updated help
-rw-r--r-- | src/command/command.c | 11 | ||||
-rw-r--r-- | src/command/commands.c | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/command/command.c b/src/command/command.c index 1a7c23da..eaa72197 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -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", diff --git a/src/command/commands.c b/src/command/commands.c index 525b188c..6d9479b7 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -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; |