From 2d821f2980825be73e3f90b47ffff365b0ec5ecb Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 7 Dec 2005 17:05:34 +0000 Subject: 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 --- include/modules.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/modules.h') 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 #include +class Server; + /** Low level definition of a FileReader classes file cache area */ typedef std::deque 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; }; -- cgit v1.2.3