diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 21:19:19 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 21:19:19 +0000 |
commit | d02a5866d4fdedec9219aeca0a6048828b394fd2 (patch) | |
tree | 1810181d59b71cba1ca68bfb8b3f9252f3c57caa /src/modules/m_conn_lusers.cpp | |
parent | 23a4885701cba4a87a5ae027257fb4207c917572 (diff) |
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
Diffstat (limited to 'src/modules/m_conn_lusers.cpp')
-rw-r--r-- | src/modules/m_conn_lusers.cpp | 5 |
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); |