summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 45b219096..b927f0b1b 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -73,6 +73,9 @@ typedef std::vector< KeyVal > KeyValList;
*/
typedef std::multimap< std::string, KeyValList > ConfigDataHash;
+class InspIRCd;
+extern InspIRCd* ServerInstance;
+
#include "inspircd_config.h"
#include "inspircd_version.h"
#include "extensible.h"
@@ -936,7 +939,6 @@ class CoreExport InspIRCd : public classbase
}
};
-extern InspIRCd* ServerInstance;
ENTRYPOINT;
template<class Cmd>
@@ -944,9 +946,9 @@ class CommandModule : public Module
{
Cmd cmd;
public:
- CommandModule(InspIRCd* me) : Module(me), cmd(me, this)
+ CommandModule(InspIRCd*) : cmd(this)
{
- me->AddCommand(&cmd);
+ ServerInstance->AddCommand(&cmd);
}
Version GetVersion()