diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-07 17:05:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-07 17:05:34 +0000 |
commit | 2d821f2980825be73e3f90b47ffff365b0ec5ecb (patch) | |
tree | 5063e20e64555f26c357ccae5ab99e54e899c69d /include | |
parent | 4eaa2dfa110cb0096c3fd2ff134514a9d5ffd0b6 (diff) |
Changed behaviour of module API to pass Server* to the constructor, rather than have to create one (makes more sense)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2252 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/modules.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h index 2b6fec02d..de9ba0c79 100644 --- a/include/modules.h +++ b/include/modules.h @@ -63,6 +63,8 @@ #include <deque> #include <sstream> +class Server; + /** Low level definition of a FileReader classes file cache area */ typedef std::deque<std::string> file_cache; @@ -242,7 +244,7 @@ class Module : public classbase /** Default constructor * creates a module class */ - Module(); + Module(Server* Me); /** Default destructor * destroys a module class @@ -1310,7 +1312,7 @@ class ModuleFactory : public classbase * Your inherited class of ModuleFactory must return a pointer to your Module class * using this method. */ - virtual Module * CreateModule() = 0; + virtual Module * CreateModule(Server* Me) = 0; }; |