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.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index f5646a51..fcce7028 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -6053,14 +6053,15 @@ cmd_plugins(ProfWin *window, const char *const command, gchar **args)
         return TRUE;
     } else if (g_strcmp0(args[0], "reload") == 0) {
         if (args[1] == NULL) {
-            cons_bad_cmd_usage(command);
-            return TRUE;
-        }
-        gboolean res = plugins_reload(args[1]);
-        if (res) {
-            cons_show("Reloaded plugin: %s", args[1]);
+            plugins_reload_all();
+            cons_show("Reloaded all plugins");
         } else {
-            cons_show("Failed to reload plugin: %s", args[1]);
+            gboolean res = plugins_reload(args[1]);
+            if (res) {
+                cons_show("Reloaded plugin: %s", args[1]);
+            } else {
+                cons_show("Failed to reload plugin: %s", args[1]);
+            }
         }
 
         return TRUE;