From bc8532b79cfa453df4da2fb0464d4106c48e8986 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 11 Jan 2014 18:29:37 +0000 Subject: [PATCH] Renamed fingerprint command, updated help --- src/command/command.c | 11 ++++++----- 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;