mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Shortened /sub "request" parameter to "req", and formatted help
This commit is contained in:
parent
a5983cacb0
commit
07d624c513
@ -201,14 +201,14 @@ static struct cmd_t main_commands[] =
|
||||
|
||||
{ "/sub",
|
||||
_cmd_sub,
|
||||
{ "/sub <add|del|request|show> [jid]", "Manage subscriptions.",
|
||||
{ "/sub <add|del|request|show> [jid]",
|
||||
"------------------",
|
||||
"add : Approve subscription to a contact.",
|
||||
"del : Remove subscription for a contact.",
|
||||
"request : Send a subscription request to the user to be informed of their",
|
||||
" : presence.",
|
||||
"show : Show subscriprion status for a contact.",
|
||||
{ "/sub <add|del|req|show> [jid]", "Manage subscriptions.",
|
||||
{ "/sub <add|del|req|show> [jid]",
|
||||
"-----------------------------",
|
||||
"add : Approve subscription to a contact.",
|
||||
"del : Remove subscription for a contact.",
|
||||
"req : Send a subscription request to the user to be informed of their",
|
||||
" : presence.",
|
||||
"show : Show subscriprion status for a contact.",
|
||||
"",
|
||||
"If optional parameter 'jid' isn't set command belongs to the current window.",
|
||||
"",
|
||||
@ -393,7 +393,7 @@ static struct cmd_t setting_commands[] =
|
||||
_cmd_set_history,
|
||||
{ "/history on|off", "Chat history in message windows.",
|
||||
{ "/history on|off",
|
||||
"-------------",
|
||||
"---------------",
|
||||
"Switch chat history on or off, requires chlog to be enabled.",
|
||||
"When history is enabled, previous messages are shown in chat windows.",
|
||||
"The last day of messages are shown, or if you have had profanity open",
|
||||
@ -497,7 +497,7 @@ cmd_init(void)
|
||||
sub_ac = p_autocomplete_new();
|
||||
p_autocomplete_add(sub_ac, strdup("add"));
|
||||
p_autocomplete_add(sub_ac, strdup("del"));
|
||||
p_autocomplete_add(sub_ac, strdup("request"));
|
||||
p_autocomplete_add(sub_ac, strdup("req"));
|
||||
p_autocomplete_add(sub_ac, strdup("show"));
|
||||
|
||||
unsigned int i;
|
||||
@ -829,7 +829,7 @@ _cmd_sub(const char * const inp, struct cmd_help_t help)
|
||||
jabber_subscription(bare_jid, PRESENCE_UNSUBSCRIBED);
|
||||
cons_show("Deleted subscription for %s", bare_jid);
|
||||
log_info("Deleted subscription for %s", bare_jid);
|
||||
} else if (strcmp(subcmd, "request") == 0) {
|
||||
} else if (strcmp(subcmd, "req") == 0) {
|
||||
jabber_subscription(bare_jid, PRESENCE_SUBSCRIBE);
|
||||
cons_show("Sent subscription request to %s.", bare_jid);
|
||||
log_info("Sent subscription request to %s.", bare_jid);
|
||||
|
@ -926,7 +926,7 @@ _cons_show_basic_help(void)
|
||||
GSList *basic_helpers = cmd_get_basic_help();
|
||||
while (basic_helpers != NULL) {
|
||||
struct cmd_help_t *help = (struct cmd_help_t *)basic_helpers->data;
|
||||
cons_show("%-25s: %s", help->usage, help->short_help);
|
||||
cons_show("%-30s: %s", help->usage, help->short_help);
|
||||
basic_helpers = g_slist_next(basic_helpers);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user