/** Holds a blocked message's details
*/
-class BlockedMessage : public classbase
+class BlockedMessage
{
public:
std::string message;
SimpleExtItem<BlockedMessage> blockamsg;
public:
- ModuleBlockAmsg(InspIRCd* Me) : Module(Me), blockamsg("blockamsg", this)
+ ModuleBlockAmsg() : blockamsg("blockamsg", this)
{
this->OnRehash(NULL);
- Extensible::Register(&blockamsg);
+ ServerInstance->Extensions.Register(&blockamsg);
Implementation eventlist[] = { I_OnRehash, I_OnPreCommand };
ServerInstance->Modules->Attach(eventlist, this, 2);
}
virtual Version GetVersion()
{
- return Version("$Id$",VF_VENDOR,API_VERSION);
+ return Version("Attempt to block /amsg, at least some of the irritating mIRC scripts.",VF_VENDOR);
}
virtual void OnRehash(User* user)
{
- ConfigReader Conf(ServerInstance);
+ ConfigReader Conf;
ForgetDelay = Conf.ReadInteger("blockamsg", "delay", 0, false);