aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-21 13:16:12 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-21 13:16:12 +0100
commitcf88a6243a093b71340c17920b0ce8d225cd9466 (patch)
tree58a17b1cfc864882e6c361fbe23047fc1db0ca7b /src
parentca05da58d8333c40bf6164b82190eebe08e21b15 (diff)
downloadrspamd-cf88a6243a093b71340c17920b0ce8d225cd9466.tar.gz
rspamd-cf88a6243a093b71340c17920b0ce8d225cd9466.zip
[Fix] Fix rspamadm -l command
Diffstat (limited to 'src')
-rw-r--r--src/rspamadm/rspamadm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c
index 68dbdeb85..2e5359133 100644
--- a/src/rspamadm/rspamadm.c
+++ b/src/rspamadm/rspamadm.c
@@ -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));
+ }
}
}
}