From d02a5866d4fdedec9219aeca0a6048828b394fd2 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Aug 2006 21:19:19 +0000 Subject: Mass-tidyup of module global vars, theyre no longer global vars. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4856 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_conn_lusers.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules/m_conn_lusers.cpp') 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); -- cgit v1.3.1-10-gc9f91