diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-02 16:47:25 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-02 16:47:25 +0000 |
commit | f2256deeefe9a9f57f6f6b902604c01138ad16cc (patch) | |
tree | 2180cffd6bec0487e3d8b5a7d5894b258782e39c /include/typedefs.h | |
parent | f288993a85681c09e3d92d8c3ab9742826923e99 (diff) |
Executable include for MOTD and more
This introduces an <execfiles> tag that reads files from the output of
a command, in the same way as executable includes. The files specified
here can also be used anywhere a file is used (opermotd, randquote, etc)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12354 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/typedefs.h')
-rw-r--r-- | include/typedefs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/typedefs.h b/include/typedefs.h index bea8e33ef..5ca49493b 100644 --- a/include/typedefs.h +++ b/include/typedefs.h @@ -97,6 +97,7 @@ typedef std::pair<std::string, std::string> KeyVal; /** The entire configuration */ typedef std::multimap<std::string, reference<ConfigTag> > ConfigDataHash; + /** Iterator of ConfigDataHash */ typedef ConfigDataHash::const_iterator ConfigIter; /** Iterator pair, used for tag-name ranges */ @@ -105,6 +106,9 @@ typedef std::pair<ConfigIter,ConfigIter> ConfigTagList; /** Index of valid oper blocks and types */ typedef std::map<std::string, reference<OperInfo> > OperIndex; +/** Files read by the configuration */ +typedef std::map<std::string, file_cache> ConfigFileCache; + /** A hash of commands used by the core */ typedef nspace::hash_map<std::string,Command*> Commandtable; |