From b76472c4eeb05e26193c32da2283abac65ed4b91 Mon Sep 17 00:00:00 2001 From: Jan Maria Matejka Date: Thu, 14 Dec 2017 14:50:51 +0100 Subject: [PATCH] Send only global symbols --- nest/cmds.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nest/cmds.c b/nest/cmds.c index 47eeabf8..f7cd6f12 100644 --- a/nest/cmds.c +++ b/nest/cmds.c @@ -105,8 +105,11 @@ cmd_send_symbols(void) HASH_WALK(config->sym_hash, next, sym) { - code = get_cli_code_for_sym(sym); - cli_msg(code, "%s", sym->name); + if (!sym->scope->next) /* global scope */ + { + code = get_cli_code_for_sym(sym); + cli_msg(code, "%s", sym->name); + } } HASH_WALK_END;