From 407f42472b53d5452c780e0a39b6975c4d841fec Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Thu, 21 Feb 2002 01:25:43 +0000 Subject: argcv_get() now (optionally) strips comments while parsing. Its the right place because it tokenizes, and whether a char is a comment or not depends on whether its in the middle of a token or not: "hi # there" # comment. --- comsat/action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'comsat/action.c') diff --git a/comsat/action.c b/comsat/action.c index ca729d4ee..6abbda31b 100644 --- a/comsat/action.c +++ b/comsat/action.c @@ -367,7 +367,7 @@ run_user_action (FILE *tty, const char *cr, message_t msg) str = expand_line (stmt, msg); if (!str) continue; - if (argcv_get (str, "", &argc, &argv) + if (argcv_get (str, "", NULL, &argc, &argv) || argc == 0 || argv[0][0] == '#') { -- cgit v1.2.1