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

Added to and tidied /connect help

This commit is contained in:
James Booth 2014-01-18 23:49:15 +00:00
parent b32ba75db5
commit 47fe146a22

View File

@ -101,15 +101,19 @@ static struct cmd_t command_defs[] =
{ "/connect", { "/connect",
cmd_connect, parse_args, 1, 5, NULL, cmd_connect, parse_args, 1, 5, NULL,
{ "/connect account [server]", "Login to a chat service.", { "/connect account [server value] [port value]", "Login to a chat service.",
{ "/connect account [server]", { "/connect account [server value] [port value]",
"-------------------------", "--------------------------------------------",
"Connect to an XMPP service using the specified account.", "Connect to an XMPP service using the specified account.",
"Use the server argument for chat services hosted at a different domain to the 'domainpart' of the Jabber ID.", "Use the server property to specify a server if required.",
"An account is automatically created if one does not exist. See the /account command for more details.", "Change the default port with the port property.",
"An account is automatically created if one does not exist.",
"See the /account command for more details.",
"", "",
"Example: /connect myuser@gmail.com", "Example: /connect myuser@gmail.com",
"Example: /connect myuser@mycompany.com talk.google.com", "Example: /connect myuser@mycompany.com server talk.google.com",
"Example: /connect bob@someplace port 5678",
"Example: /connect me@chatty server chatty.com port 5443",
NULL } } }, NULL } } },
{ "/disconnect", { "/disconnect",