Added msg to new help format

This commit is contained in:
James Booth
2015-07-24 00:44:56 +01:00
parent 44d7a152a4
commit a8eb281553

View File

@@ -172,37 +172,48 @@ static struct cmd_t command_defs[] =
NULL } } NULL } }
}, },
// OLD STYLE
{ "/disconnect", { "/disconnect",
cmd_disconnect, parse_args, 0, 0, NULL, cmd_disconnect, parse_args, 0, 0, NULL,
{ "/disconnect", "Logout of current session.", { NULL, NULL, { NULL },
{ "/disconnect", {
"-----------", "/disconnect",
NULL
},
"Disconnect from the current chat service.", "Disconnect from the current chat service.",
NULL, {
NULL, NULL, NULL, NULL } } }, END_ARGS },
{
NULL } }
},
{ "/msg", { "/msg",
cmd_msg, parse_args_with_freetext, 1, 2, NULL, cmd_msg, parse_args_with_freetext, 1, 2, NULL,
{ "/msg contact|nick [message]", "Start chat with a user.", { NULL, NULL, { NULL },
{ "/msg contact|nick [message]", {
"---------------------------", "/msg <contact> [<message>]",
"Send a one to one chat message, or a private message to a chat room occupant.", "/msg <nick> [<message>]",
"", NULL
"contact : The contact's JID, or nickname if one has been set in your roster.", },
"nick : A chat room occupant, to whom you wish to send a private message.", "Send a one to one chat message, or a private message to a chat room occupant. "
"message : The message to send", "If the message is omitted, a new chat window will be opened without sending a message. "
"",
"If the message is omitted, a new chat window will be opened without sending a message.",
"Use quotes if the nickname includes spaces.", "Use quotes if the nickname includes spaces.",
"", {
"Example: /msg myfriend@server.com Hey, here's a message!", { "<contact>", "Open chat window with contact, by JID or nickname." },
"Example: /msg otherfriend@server.com", { "<contact> [<message>]", "Send message to contact, by JID or nickname." },
"Example: /msg Bob Here is a private message", { "<nick>", "Open private chat window with chat room occupant." },
"Example: /msg \"My Friend\" Hi, how are you?", { "<nick> [<message>]", "Send a private message to a chat room occupant." },
NULL, END_ARGS },
NULL, NULL, NULL, NULL } } }, {
"/msg myfriend@server.com Hey, here's a message!",
"/msg otherfriend@server.com",
"/msg Bob Here is a private message",
"/msg \"My Friend\" Hi, how are you?",
NULL } }
},
// OLD STYLE
{ "/roster", { "/roster",
cmd_roster, parse_args_with_freetext, 0, 3, NULL, cmd_roster, parse_args_with_freetext, 0, 3, NULL,