summaryrefslogtreecommitdiff
path: root/src/modules/m_conn_lusers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_conn_lusers.cpp')
-rw-r--r--src/modules/m_conn_lusers.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_conn_lusers.cpp b/src/modules/m_conn_lusers.cpp
index 2d9823015..f988c76c0 100644
--- a/src/modules/m_conn_lusers.cpp
+++ b/src/modules/m_conn_lusers.cpp
@@ -19,9 +19,12 @@ using namespace std;
#include "users.h"
#include "channels.h"
#include "modules.h"
+#include "inspircd.h"
/* $ModDesc: Sends the /LUSERS on connect */
+extern InspIRCd* ServerInstance;
+
// This has to be the simplest module ever.
// The RFC doesnt specify that you should send the /LUSERS numerics
// on connect, but someone asked for it, so its in a module.
@@ -60,7 +63,7 @@ class ModuleConnLUSERS : public Module
// protocol module. Yes, at some point there will
// be a way to get the current protocol module's name
// from the core and probably a pointer to its class.
- Module* Proto = Srv->FindModule("m_spanningtree.so");
+ Module* Proto = ServerInstance->FindModule("m_spanningtree.so");
if (Proto)
{
Proto->OnPreCommand("LUSERS", NULL, 0, user, true);