CUList empty;
public:
LocalIntExt jointime;
- DelayMsgMode(InspIRCd* Instance, Module* Parent) : ModeHandler(Parent, 'd', PARAM_SETONLY, MODETYPE_CHANNEL)
+ DelayMsgMode(Module* Parent) : ModeHandler(Parent, "delaymsg", 'd', PARAM_SETONLY, MODETYPE_CHANNEL)
, jointime("delaymsg", Parent)
{
levelrequired = OP_VALUE;
}
}
- bool CheckTimeStamp(std::string &their_param, const std::string &our_param, Channel*)
+ bool ResolveModeConflict(std::string &their_param, const std::string &our_param, Channel*)
{
return (atoi(their_param.c_str()) < atoi(our_param.c_str()));
}
private:
DelayMsgMode djm;
public:
- ModuleDelayMsg(InspIRCd* Me) : Module(Me), djm(Me, this)
+ ModuleDelayMsg() : djm(this)
{
if (!ServerInstance->Modes->AddMode(&djm))
throw ModuleException("Could not add new modes!");
ModuleDelayMsg::~ModuleDelayMsg()
{
- ServerInstance->Modes->DelMode(&djm);
}
Version ModuleDelayMsg::GetVersion()