*/
class BlockedMessage
{
-public:
+ public:
std::string message;
irc::string target;
time_t sent;
void init()
{
this->OnRehash(NULL);
- ServerInstance->Extensions.Register(&blockamsg);
+ ServerInstance->Modules->AddService(blockamsg);
Implementation eventlist[] = { I_OnRehash, I_OnPreCommand };
- ServerInstance->Modules->Attach(eventlist, this, 2);
- }
-
- virtual ~ModuleBlockAmsg()
- {
+ ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
}
virtual Version GetVersion()
}
};
-
MODULE_INIT(ModuleBlockAmsg)