diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-03-14 15:22:27 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-03-14 15:22:27 +0000 |
commit | c84ad4cc16452b86bb444a22a55203afa4fa5454 (patch) | |
tree | 462a647032f3e7b1e45b7e17352a0abc0102b1cc /include/configreader.h | |
parent | 0b58bc2585ccc96219a238a9ef9ff73a125fa531 (diff) |
Add fixes to stop people changing the SID of a live server - certain configuration values are silently ignored on rehash, namely the server name and server id.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9073 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/configreader.h')
-rw-r--r-- | include/configreader.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/configreader.h b/include/configreader.h index d7789b9ed..3120d3d59 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -49,7 +49,8 @@ enum ConfigDataType DT_IPADDRESS = 6, /* IP address (v4, v6) */ DT_CHANNEL = 7, /* Channel name */ DT_ALLOW_WILD = 64, /* Allow wildcards/CIDR in DT_IPADDRESS */ - DT_ALLOW_NEWLINE = 128 /* New line characters allowed in DT_CHARPTR */ + DT_ALLOW_NEWLINE = 128, /* New line characters allowed in DT_CHARPTR */ + DT_BOOTONLY = 256 /* Can only be set on startup, not on rehash */ }; /** Holds a config value, either string, integer or boolean. @@ -172,7 +173,7 @@ struct InitialConfig /** Value containers */ ValueContainerBase* val; /** Data types */ - ConfigDataType datatype; + int datatype; /** Validation function */ Validator validation_function; }; |