1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

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",
"Disconnect from the current chat service.", NULL
NULL, },
NULL, NULL, NULL, NULL } } }, "Disconnect from the current chat service.",
{
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. "
"", "Use quotes if the nickname includes spaces.",
"If the message is omitted, a new chat window will be opened without sending a message.", {
"Use quotes if the nickname includes spaces.", { "<contact>", "Open chat window with contact, by JID or nickname." },
"", { "<contact> [<message>]", "Send message to contact, by JID or nickname." },
"Example: /msg myfriend@server.com Hey, here's a message!", { "<nick>", "Open private chat window with chat room occupant." },
"Example: /msg otherfriend@server.com", { "<nick> [<message>]", "Send a private message to a chat room occupant." },
"Example: /msg Bob Here is a private message", END_ARGS },
"Example: /msg \"My Friend\" Hi, how are you?", {
NULL, "/msg myfriend@server.com Hey, here's a message!",
NULL, NULL, NULL, NULL } } }, "/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,