about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorWill Song <incertia9474@gmail.com>2014-11-27 12:28:16 -0600
committerWill Song <incertia9474@gmail.com>2014-11-27 12:28:16 -0600
commitb23c60953f126277c7a06fa226c2eb10a0fe6638 (patch)
tree4046bf6d1fcbc1bc3374207dc412c7a40a69617f /src/command
parentb5a40f5b04c8e4fc669dabb4dddbad534d618ce4 (diff)
downloadprofani-tty-b23c60953f126277c7a06fa226c2eb10a0fe6638.tar.gz
add some tooltip messages for /account and /connect
Diffstat (limited to 'src/command')
-rw-r--r--src/command/command.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 36205960..0603cb74 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -128,16 +128,18 @@ static struct cmd_t command_defs[] =
           NULL  } } },
 
     { "/connect",
-        cmd_connect, parse_args, 1, 5, NULL,
-        { "/connect account [server value] [port value]", "Login to a chat service.",
-        { "/connect account [server value] [port value]",
+        cmd_connect, parse_args, 0, 5, NULL,
+        { "/connect [account] [server value] [port value]", "Login to a chat service.",
+        { "/connect [account] [server value] [port value]",
           "--------------------------------------------",
           "Connect to an XMPP service using the specified account.",
           "Use the server property to specify a server if required.",
           "Change the default port (5222, or 5223 for SSL) with the port property.",
           "An account is automatically created if one does not exist.",
+          "If no account is specified, then the default account is used."
           "See the /account command for more details.",
           "",
+          "Example: /connect",
           "Example: /connect myuser@gmail.com",
           "Example: /connect myuser@mycompany.com server talk.google.com",
           "Example: /connect bob@someplace port 5678",
@@ -889,6 +891,7 @@ static struct cmd_t command_defs[] =
           "show account                 : Show information about an account.",
           "enable account               : Enable the account, it will be used for autocomplete.",
           "disable account              : Disable the account.",
+          "default [set|off] [account]  : Set the default account.",
           "add account                  : Create a new account.",
           "remove account               : Remove an account.",
           "rename account newname       : Rename account to newname.",