summaryrefslogtreecommitdiff
path: root/src/modules/m_setname.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_setname.cpp')
-rw-r--r--src/modules/m_setname.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_setname.cpp b/src/modules/m_setname.cpp
index 163f30f73..b07f9a391 100644
--- a/src/modules/m_setname.cpp
+++ b/src/modules/m_setname.cpp
@@ -22,10 +22,11 @@ using namespace std;
#include "channels.h"
#include "modules.h"
#include "helperfuncs.h"
+#include "inspircd.h"
/* $ModDesc: Provides support for the SETNAME command */
-static Server *Srv;
+extern InspIRCd* ServerInstance;
class cmd_setname : public command_t
{
@@ -58,7 +59,7 @@ class ModuleSetName : public Module
{
mycommand = new cmd_setname();
- Srv->AddCommand(mycommand);
+ ServerInstance->AddCommand(mycommand);
}
virtual ~ModuleSetName()