* ---------------------------------------------------
*/
-#include <string>
-#include <time.h>
-#include "inspircd_config.h"
+#include "inspircd.h"
#include "users.h"
#include "channels.h"
#include "modules.h"
-
#include "hashcomp.h"
-#include "inspircd.h"
/* $ModDesc: Attempt to block /amsg, at least some of the irritating mIRC scripts. */
int ForgetDelay;
BlockAction action;
public:
- ModuleBlockAmsg(InspIRCd* Me) : Module::Module(Me)
+ ModuleBlockAmsg(InspIRCd* Me) : Module(Me)
{
- this->OnRehash("");
+ this->OnRehash(NULL,"");
}
void Implements(char* List)
return Version(1,1,0,0,VF_VENDOR,API_VERSION);
}
- virtual void OnRehash(const std::string ¶meter)
+ virtual void OnRehash(userrec* user, const std::string ¶meter)
{
ConfigReader* Conf = new ConfigReader(ServerInstance);
};
-extern "C" void * init_module( void )
+extern "C" DllExport void * init_module( void )
{
return new ModuleBlockAmsgFactory;
}