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:
@@ -5087,19 +5087,6 @@ cmd_clear(ProfWin *window, const char *const command, gchar **args)
|
||||
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
|
||||
cmd_privileges(ProfWin *window, const char *const command, gchar **args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user