X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_joinflood.cpp;h=3d342b636357f3efd72bb29ed750fff8de765c81;hb=e9d1efc1ae29ee86b3c2a42bf56531afac7add6d;hp=bd5b186c0a0ef387cc5eda6e384e8be33cc1cb68;hpb=76d7e8a0684b38a82e6c05ebd7538b69660e1bef;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp index bd5b186c0..3d342b636 100644 --- a/src/modules/m_joinflood.cpp +++ b/src/modules/m_joinflood.cpp @@ -139,7 +139,7 @@ class JoinFlood : public ModeHandler if ((njoins<1) || (nsecs<1)) { source->WriteServ("608 %s %s :Invalid flood parameter",source->nick,channel->name); - parameter = ""; + parameter.clear(); return MODEACTION_DENY; } else @@ -282,28 +282,4 @@ class ModuleJoinFlood : public Module } }; - -class ModuleJoinFloodFactory : public ModuleFactory -{ - public: - ModuleJoinFloodFactory() - { - } - - ~ModuleJoinFloodFactory() - { - } - - virtual Module * CreateModule(InspIRCd* Me) - { - return new ModuleJoinFlood(Me); - } - -}; - - -extern "C" DllExport void * init_module( void ) -{ - return new ModuleJoinFloodFactory; -} - +MODULE_INIT(ModuleJoinFlood)