mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Remove /leave command
We have `/close` which does the same and more. Regards https://github.com/profanity-im/profanity/issues/1116
This commit is contained in:
parent
47d8d210ab
commit
6a88af6bc6
@ -579,20 +579,6 @@ static struct cmd_t command_defs[] =
|
|||||||
"/join mychannel")
|
"/join mychannel")
|
||||||
},
|
},
|
||||||
|
|
||||||
{ "/leave",
|
|
||||||
parse_args, 0, 0, NULL,
|
|
||||||
CMD_NOSUBFUNCS
|
|
||||||
CMD_MAINFUNC(cmd_leave)
|
|
||||||
CMD_TAGS(
|
|
||||||
CMD_TAG_GROUPCHAT)
|
|
||||||
CMD_SYN(
|
|
||||||
"/leave")
|
|
||||||
CMD_DESC(
|
|
||||||
"Leave the current chat or room.")
|
|
||||||
CMD_NOARGS
|
|
||||||
CMD_NOEXAMPLES
|
|
||||||
},
|
|
||||||
|
|
||||||
{ "/invite",
|
{ "/invite",
|
||||||
parse_args_with_freetext, 1, 2, NULL,
|
parse_args_with_freetext, 1, 2, NULL,
|
||||||
CMD_NOSUBFUNCS
|
CMD_NOSUBFUNCS
|
||||||
|
@ -5087,19 +5087,6 @@ cmd_clear(ProfWin *window, const char *const command, gchar **args)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
|
||||||
cmd_leave(ProfWin *window, const char *const command, gchar **args)
|
|
||||||
{
|
|
||||||
if (window->type != WIN_MUC && window->type != WIN_CHAT && window->type != WIN_PRIVATE) {
|
|
||||||
cons_show("The /leave command is only valid in chat, or chat room windows.");
|
|
||||||
cons_alert();
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
// use /close behaviour
|
|
||||||
return cmd_close(window, "/leave", args);
|
|
||||||
}
|
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
cmd_privileges(ProfWin *window, const char *const command, gchar **args)
|
cmd_privileges(ProfWin *window, const char *const command, gchar **args)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user