/* $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
{
private:
- Server *Srv;
+
public:
- ModuleConnLUSERS(Server* Me)
+ ModuleConnLUSERS(InspIRCd* Me)
: Module::Module(Me)
{
- Srv = Me;
+
}
virtual ~ModuleConnLUSERS()
}
else
{
- Srv->CallCommandHandler("LUSERS", NULL, 0, user);
+ ServerInstance->CallCommandHandler("LUSERS", NULL, 0, user);
}
}
};
{
}
- virtual Module * CreateModule(Server* Me)
+ virtual Module * CreateModule(InspIRCd* Me)
{
return new ModuleConnLUSERS(Me);
}