diff options
author | James Booth <boothj5@gmail.com> | 2016-05-31 22:46:03 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-05-31 22:46:03 +0100 |
commit | 52c01a8ee8619fcfbceb339085b15a520e597667 (patch) | |
tree | 3f7cb1b36497ccfddca267d6c0b6ae4097fb9d70 /src/command/cmd_defs.c | |
parent | 94212cd01ca87e26a06af4dfbc7b48087c1ef79c (diff) | |
download | profani-tty-52c01a8ee8619fcfbceb339085b15a520e597667.tar.gz |
Add /presence titlebar subcommand
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r-- | src/command/cmd_defs.c | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index a979dbd6..47d6087d 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -1197,21 +1197,47 @@ static struct cmd_t command_defs[] = }, { "/presence", - parse_args, 1, 1, &cons_presence_setting, + parse_args, 2, 2, &cons_presence_setting, CMD_NOSUBFUNCS CMD_MAINFUNC(cmd_presence) CMD_TAGS( CMD_TAG_UI, CMD_TAG_CHAT) CMD_SYN( - "/presence on|off") + "/presence titlebar on|off") CMD_DESC( "Show the contacts presence in the titlebar.") CMD_ARGS( - { "on|off", "Switch display of the contacts presence in the titlebar on or off." }) + { "titlebar on|off", "Switch display of the contacts presence in the titlebar on or off." }) CMD_NOEXAMPLES }, + { "/statuses", + parse_args, 2, 2, &cons_statuses_setting, + CMD_NOSUBFUNCS + CMD_MAINFUNC(cmd_statuses) + CMD_TAGS( + CMD_TAG_UI, + CMD_TAG_CHAT, + CMD_TAG_GROUPCHAT) + CMD_SYN( + "/statuses console|chat|muc all|online|none") + CMD_DESC( + "Configure which presence changes are displayed in various windows. " + "The default is 'all' for all windows.") + CMD_ARGS( + { "console", "Configure what is displayed in the console window." }, + { "chat", "Configure what is displayed in chat windows." }, + { "muc", "Configure what is displayed in chat room windows." }, + { "all", "Show all presence changes." }, + { "online", "Show only online/offline changes." }, + { "none", "Don't show any presence changes." }) + CMD_EXAMPLES( + "/statuses console none", + "/statuses chat online", + "/statuses muc all") + }, + { "/wrap", parse_args, 1, 1, &cons_wrap_setting, CMD_NOSUBFUNCS @@ -2015,32 +2041,6 @@ static struct cmd_t command_defs[] = "/theme load forest") }, - { "/statuses", - parse_args, 2, 2, &cons_statuses_setting, - CMD_NOSUBFUNCS - CMD_MAINFUNC(cmd_statuses) - CMD_TAGS( - CMD_TAG_UI, - CMD_TAG_CHAT, - CMD_TAG_GROUPCHAT) - CMD_SYN( - "/statuses console|chat|muc all|online|none") - CMD_DESC( - "Configure which presence changes are displayed in various windows. " - "The default is 'all' for all windows.") - CMD_ARGS( - { "console", "Configure what is displayed in the console window." }, - { "chat", "Configure what is displayed in chat windows." }, - { "muc", "Configure what is displayed in chat room windows." }, - { "all", "Show all presence changes." }, - { "online", "Show only online/offline changes." }, - { "none", "Don't show any presence changes." }) - CMD_EXAMPLES( - "/statuses console none", - "/statuses chat online", - "/statuses muc all") - }, - { "/xmlconsole", parse_args, 0, 0, NULL, CMD_NOSUBFUNCS |