1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Added contact OTR policy to help

This commit is contained in:
James Booth 2015-09-28 21:34:27 +01:00
parent 0b03f72b2c
commit 9f4e2c036e

View File

@ -1210,31 +1210,35 @@ static struct cmd_t command_defs[] =
"/otr secret <secret>", "/otr secret <secret>",
"/otr question <question> <answer>", "/otr question <question> <answer>",
"/otr answer <answer>", "/otr answer <answer>",
"/otr policy manual|opportunistic|always", "/otr policy manual|opportunistic|always [<contact>]",
"/otr log on|off|redact", "/otr log on|off|redact",
"/otr char <char>") "/otr char <char>")
CMD_DESC( CMD_DESC(
"Off The Record (OTR) commands to manage keys, and perform OTR encryption during chat sessions.") "Off The Record (OTR) commands to manage keys, and perform OTR encryption during chat sessions.")
CMD_ARGS( CMD_ARGS(
{ "libver", "Show which version of the libotr library is being used." }, { "libver", "Show which version of the libotr library is being used." },
{ "gen", "Generate your private key." }, { "gen", "Generate your private key." },
{ "myfp", "Show your fingerprint." }, { "myfp", "Show your fingerprint." },
{ "theirfp", "Show contacts fingerprint." }, { "theirfp", "Show contacts fingerprint." },
{ "start [<contact>]", "Start an OTR session with contact, or current recipient if omitted." }, { "start [<contact>]", "Start an OTR session with contact, or current recipient if omitted." },
{ "end", "End the current OTR session," }, { "end", "End the current OTR session," },
{ "trust|untrust", "Indicate whether or not you trust the contact's fingerprint." }, { "trust|untrust", "Indicate whether or not you trust the contact's fingerprint." },
{ "secret <secret>", "Verify a contact's identity using a shared secret." }, { "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." }, { "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." }, { "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", "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 manual <contact>", "Set the OTR policy to manual 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 opportunistic", "Set the global OTR policy to opportunistic, an OTR session will be attempted upon starting a conversation." },
{ "log on|off", "Enable or disable plaintext logging of OTR encrypted messages." }, { "policy opportunistic <contact>", "Set the OTR policy to opportunistic for a specific contact." },
{ "log redact", "Log OTR encrypted messages, but replace the contents with [redacted]. This is the default." }, { "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." },
{ "char <char>", "Set the character to be displayed next to OTR encrypted messages." }) { "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( CMD_EXAMPLES(
"/otr log off", "/otr log off",
"/otr policy manual", "/otr policy manual",
"/otr policy opportunistic mrfriend@workchat.org",
"/otr gen", "/otr gen",
"/otr start buddy@buddychat.org", "/otr start buddy@buddychat.org",
"/otr myfp", "/otr myfp",