Move /statuses options to /presence command

This commit is contained in:
James Booth
2016-05-31 23:21:19 +01:00
parent 52c01a8ee8
commit 383e601f25
11 changed files with 196 additions and 212 deletions

View File

@@ -1200,44 +1200,61 @@ static struct cmd_t command_defs[] =
parse_args, 2, 2, &cons_presence_setting,
CMD_NOSUBFUNCS
CMD_MAINFUNC(cmd_presence)
CMD_TAGS(
CMD_TAG_UI,
CMD_TAG_CHAT)
CMD_SYN(
"/presence titlebar on|off")
CMD_DESC(
"Show the contacts presence in the titlebar.")
CMD_ARGS(
{ "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")
"/presence titlebar on|off",
"/presence console all|online|none",
"/presence chat all|online|none",
"/presence room all|online|none")
CMD_DESC(
"Configure which presence changes are displayed in various windows. "
"The default is 'all' for all windows.")
"Show the contacts presence in the titlebar and configure presence messages in different window types.")
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." })
{ "titlebar on|off", "Switch display of the contacts presence in the titlebar on or off." },
{ "console all", "Show all presence changes in the console window." },
{ "console online", "Show only online/offline presence changes in the console window." },
{ "console none", "Don't show any presence changes in the console window." },
{ "chat all", "Show all presence changes in the chat windows." },
{ "chat online", "Show only online/offline presence changes in chat windows." },
{ "chat none", "Don't show any presence changes in chat windows." },
{ "room all", "Show all presence changes in chat room windows." },
{ "room online", "Show only online/offline presence changes in chat room windows." },
{ "room none", "Don't show any presence changes in chat room windows." })
CMD_EXAMPLES(
"/statuses console none",
"/statuses chat online",
"/statuses muc all")
"/presence titlebar off",
"/presence console none",
"/presence chat online",
"/presence room all")
},
// { "/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