1
0
mirror of https://github.com/irssi/irssi.git synced 2024-08-04 03:34:18 -04:00

One more limit to "key" names - it can't start with a digit. This allows us

to use /BIND foo meta2-18~ etc. more easily.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1740 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-08-12 17:05:36 +00:00 committed by cras
parent 55be71a726
commit 53c13065d2

View File

@ -263,7 +263,8 @@ static int expand_key(const char *key, GSList **out)
start = NULL; last_hyphen = TRUE;
for (; *key != '\0'; key++) {
if (start != NULL) {
if (isalnum(*key) || *key == '_') {
if (!isdigit(*start) &&
(isalnum(*key) || *key == '_')) {
/* key combo continues */
continue;
}