X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmodules.h;h=f15341e017baa3c53e2a2fb6addfd5f140a24f2b;hb=90639721625b5da867effc7dd4adec003c1bd3b4;hp=88d4eecdf89d9b25978c949d148d154e962b79d7;hpb=572a7b503b434367e57ba1624f415e1c472e18a2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/modules.h b/include/modules.h index 88d4eecdf..f15341e01 100644 --- a/include/modules.h +++ b/include/modules.h @@ -64,10 +64,11 @@ enum TargetTypeFlags { TYPE_OTHER }; +#include "globals.h" #include "dynamic.h" #include "base.h" #include "ctables.h" -#include "socket.h" +#include "inspsocket.h" #include #include #include @@ -101,7 +102,7 @@ typedef std::deque chanuserlist; } \ catch (ModuleException& modexcept) \ { \ - log(DEBUG,"Module exception cought: %s",modexcept.GetReason()); \ + log(DEBUG,"Module exception caught: %s",modexcept.GetReason()); \ } \ } \ } @@ -1778,10 +1779,11 @@ class ConfigReader : public classbase * core is changed). It will contain a pointer to the configuration file data with unneeded data * (such as comments) stripped from it. */ - std::stringstream *cache; - std::stringstream *errorlog; + ConfigDataHash* data; + std::ostringstream* errorlog;; /** Used to store errors */ + bool privatehash; // If we're using our own config data hash or not. bool readerror; long error; @@ -1930,6 +1932,8 @@ class ModuleFactory : public classbase typedef DLLFactory ircd_module; +typedef std::vector ModuleList; +typedef std::vector FactoryList; bool ModeDefined(char c, int i); bool ModeDefinedOper(char c, int i);