From db0eac61e4a241d5cf24da9c9b82c1e16a16163b Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 10 Jun 2007 17:07:31 +0000 Subject: When parsing a '@' option verify that the whole argument, rather than only the first character, is numeric. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4548 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/commands.c b/src/core/commands.c index bb48ccd4..361a0ecb 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -637,7 +637,7 @@ static int get_cmd_options(char **data, int ignore_unknown, if (option == NULL) break; - if (*optlist[pos] == '@' && !i_isdigit(**data)) + if (*optlist[pos] == '@' && !is_numeric(*data, ' ')) break; /* expected a numeric argument */ /* save the argument */ -- cgit v1.2.3