summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2007-06-10 17:07:31 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-06-10 17:07:31 +0000
commitdb0eac61e4a241d5cf24da9c9b82c1e16a16163b (patch)
tree9efcfaffbf72b75227a6685d09dea9e9436fbddb
parenta588d67bc27d009875826a2c70c49f66edd224ef (diff)
downloadirssi-db0eac61e4a241d5cf24da9c9b82c1e16a16163b.zip
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
-rw-r--r--src/core/commands.c2
1 files changed, 1 insertions, 1 deletions
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 */