1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05: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; start = NULL; last_hyphen = TRUE;
for (; *key != '\0'; key++) { for (; *key != '\0'; key++) {
if (start != NULL) { if (start != NULL) {
if (isalnum(*key) || *key == '_') { if (!isdigit(*start) &&
(isalnum(*key) || *key == '_')) {
/* key combo continues */ /* key combo continues */
continue; continue;
} }