*
* ---------------------------------------------------
*/
-
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "configreader.h"
+
#include "inspircd.h"
#include "wildcard.h"
{
int minusers = 0, maxusers = 0;
- if (global_listing >= LimitList)
+ if (global_listing >= LimitList && !IS_OPER(user))
{
user->WriteServ("NOTICE %s :*** Server load is currently too heavy. Please try again later.", user->nick);
user->WriteServ("321 %s Channel :Users Name",user->nick);
};
-
-class ModuleSafeListFactory : public ModuleFactory
-{
- public:
- ModuleSafeListFactory()
- {
- }
-
- ~ModuleSafeListFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleSafeList(Me);
- }
-
-};
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleSafeListFactory;
-}
+MODULE_INIT(ModuleSafeList)