From f393f58b5cf34dc17350c4ba9a22707751ef9f7a Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 8 Jun 2008 14:37:47 +0000 Subject: Allow 0-9 in tag/key names, and special check for > and \n git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9865 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configreader.cpp b/src/configreader.cpp index 4861b7fb3..56eefa9ed 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1544,7 +1544,7 @@ bool ServerConfig::ParseLine(ConfigDataHash &target, const std::string &filename { if (*c != '<') { - if ((*c >= 'a' && *c <= 'z') || (*c >= 'A' && *c <='Z') || *c == '_') + if ((*c >= 'a' && *c <= 'z') || (*c >= 'A' && *c <='Z') || (*c >= '0' && *c <= '9') || *c == '_') tagname += *c; else { @@ -1572,7 +1572,7 @@ bool ServerConfig::ParseLine(ConfigDataHash &target, const std::string &filename { if (*c != ' ') { - if ((*c >= 'a' && *c <= 'z') || (*c >= 'A' && *c <='Z') || *c == '_') + if ((*c >= 'a' && *c <= 'z') || (*c >= 'A' && *c <='Z') || (*c >= '0' && *c <= '9') || *c == '_' || *c == '\n' || *c == '>') current_key += *c; else { -- cgit v1.2.3