From 52c01a8ee8619fcfbceb339085b15a520e597667 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 31 May 2016 22:46:03 +0100 Subject: Add /presence titlebar subcommand --- src/command/cmd_defs.c | 58 +++++++++++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'src/command/cmd_defs.c') 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 -- cgit 1.4.1-2-gfad0