1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-13 05:03:45 -04:00

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
This commit is contained in:
Emanuele Giaquinta 2007-06-10 17:07:31 +00:00 committed by exg
parent a588d67bc2
commit db0eac61e4

View File

@ -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 */