]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix rspamadm -l command
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Jun 2018 12:16:12 +0000 (13:16 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Jun 2018 12:16:12 +0000 (13:16 +0100)
src/rspamadm/rspamadm.c

index 68dbdeb852afc1f1add52d9dd6f17896931b1a70..2e5359133b79aebd05e803cdf107a5a4a41ec3b9 100644 (file)
@@ -99,7 +99,12 @@ rspamadm_commands (GPtrArray *all_commands)
 
        PTR_ARRAY_FOREACH (all_commands, i, cmd) {
                if (!(cmd->flags & RSPAMADM_FLAG_NOHELP)) {
-                       rspamd_printf ("  %-18s %-60s\n", cmd->name, cmd->help (FALSE, cmd));
+                       if (cmd->flags & RSPAMADM_FLAG_LUA) {
+                               (void)cmd->help (FALSE, cmd);
+                       }
+                       else {
+                               printf ("  %-18s %-60s\n", cmd->name, cmd->help (FALSE, cmd));
+                       }
                }
        }
 }