about summary refs log tree commit diff stats
path: root/src/command/cmd_funcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r--src/command/cmd_funcs.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 9b2622e7..b0f578d6 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -5088,19 +5088,6 @@ cmd_clear(ProfWin *window, const char *const command, gchar **args)
 }
 
 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)
 {
     _cmd_set_boolean_preference(args[0], command, "MUC privileges", PREF_MUC_PRIVILEGES);