Add /presence titlebar subcommand

This commit is contained in:
James Booth
2016-05-31 22:46:03 +01:00
parent 94212cd01c
commit 52c01a8ee8
3 changed files with 64 additions and 32 deletions

View File

@@ -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