diff options
author | James Booth <boothj5@gmail.com> | 2015-09-28 21:34:27 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-09-28 21:34:27 +0100 |
commit | 9f4e2c036e0a4282922ba8203651dce51609e1bd (patch) | |
tree | e715a8e6d44e867025bfd6520e633011a08dfaf9 | |
parent | 0b03f72b2cbe900244f192edc0fee8e368a3b987 (diff) | |
download | profani-tty-9f4e2c036e0a4282922ba8203651dce51609e1bd.tar.gz |
Added contact OTR policy to help
-rw-r--r-- | src/command/command.c | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/src/command/command.c b/src/command/command.c index d93106e9..186155b0 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -1210,31 +1210,35 @@ static struct cmd_t command_defs[] = "/otr secret <secret>", "/otr question <question> <answer>", "/otr answer <answer>", - "/otr policy manual|opportunistic|always", + "/otr policy manual|opportunistic|always [<contact>]", "/otr log on|off|redact", "/otr char <char>") CMD_DESC( "Off The Record (OTR) commands to manage keys, and perform OTR encryption during chat sessions.") CMD_ARGS( - { "libver", "Show which version of the libotr library is being used." }, - { "gen", "Generate your private key." }, - { "myfp", "Show your fingerprint." }, - { "theirfp", "Show contacts fingerprint." }, - { "start [<contact>]", "Start an OTR session with contact, or current recipient if omitted." }, - { "end", "End the current OTR session," }, - { "trust|untrust", "Indicate whether or not you trust the contact's fingerprint." }, - { "secret <secret>", "Verify a contact's identity using a shared secret." }, - { "question <question> <answer>", "Verify a contact's identity using a question and expected answer." }, - { "answer <answer>", "Respond to a question answer verification request with your answer." }, - { "policy manual", "Set the global OTR policy to manual, OTR sessions must be started manually." }, - { "policy opportunistic", "Set the global OTR policy to opportunistic, and OTR sessions will be attempted upon starting a conversation." }, - { "policy always", "Set the global OTR policy to always, an error will be displayed if an OTR session cannot be initiated upon starting a conversation." }, - { "log on|off", "Enable or disable plaintext logging of OTR encrypted messages." }, - { "log redact", "Log OTR encrypted messages, but replace the contents with [redacted]. This is the default." }, - { "char <char>", "Set the character to be displayed next to OTR encrypted messages." }) + { "libver", "Show which version of the libotr library is being used." }, + { "gen", "Generate your private key." }, + { "myfp", "Show your fingerprint." }, + { "theirfp", "Show contacts fingerprint." }, + { "start [<contact>]", "Start an OTR session with contact, or current recipient if omitted." }, + { "end", "End the current OTR session," }, + { "trust|untrust", "Indicate whether or not you trust the contact's fingerprint." }, + { "secret <secret>", "Verify a contact's identity using a shared secret." }, + { "question <question> <answer>", "Verify a contact's identity using a question and expected answer." }, + { "answer <answer>", "Respond to a question answer verification request with your answer." }, + { "policy manual", "Set the global OTR policy to manual, OTR sessions must be started manually." }, + { "policy manual <contact>", "Set the OTR policy to manual for a specific contact." }, + { "policy opportunistic", "Set the global OTR policy to opportunistic, an OTR session will be attempted upon starting a conversation." }, + { "policy opportunistic <contact>", "Set the OTR policy to opportunistic for a specific contact." }, + { "policy always", "Set the global OTR policy to always, an error will be displayed if an OTR session cannot be initiated upon starting a conversation." }, + { "policy always <contact>", "Set the OTR policy to always for a specific contact." }, + { "log on|off", "Enable or disable plaintext logging of OTR encrypted messages." }, + { "log redact", "Log OTR encrypted messages, but replace the contents with [redacted]. This is the default." }, + { "char <char>", "Set the character to be displayed next to OTR encrypted messages." }) CMD_EXAMPLES( "/otr log off", "/otr policy manual", + "/otr policy opportunistic mrfriend@workchat.org", "/otr gen", "/otr start buddy@buddychat.org", "/otr myfp", |