about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-07-08 20:51:39 +0100
committerJames Booth <boothj5@gmail.com>2015-07-08 20:51:39 +0100
commit9a5fe29caa230a5229c26470ef693d2fc102add6 (patch)
tree1e9bce5f92c6fb4e53f23422fcb4cf568e164015 /src/command/commands.c
parentdd480cd72a4f806f58fa4576712f57d1e66aa17d (diff)
downloadprofani-tty-9a5fe29caa230a5229c26470ef693d2fc102add6.tar.gz
Changed /roster empty -> /roster remove_all contacts
Make it difficult to accidentally use this command.
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 8c071048..757b8115 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1678,7 +1678,11 @@ cmd_roster(ProfWin *window, gchar **args, struct cmd_help_t help)
         }
         return TRUE;
 
-    } else if (strcmp(args[0], "empty") == 0) {
+    } else if (strcmp(args[0], "remove_all") == 0) {
+        if (g_strcmp0(args[1], "contacts") != 0) {
+            cons_show("Usage: %s", help.usage);
+            return TRUE;
+        }
         if (conn_status != JABBER_CONNECTED) {
             cons_show("You are not currently connected.");
             return TRUE;