public:
ServProtectMode(InspIRCd* Instance) : ModeHandler(Instance, 'k', 0, 0, false, MODETYPE_USER, true) { }
- ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding)
+ ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding)
{
return MODEACTION_DENY;
}
{
bm = new ServProtectMode(ServerInstance);
- if (!ServerInstance->AddMode(bm, 'k'))
+ if (!ServerInstance->AddMode(bm))
throw ModuleException("Could not add new modes!");
}
return Version(1,1,0,0,VF_COMMON,API_VERSION);
}
- virtual void OnWhois(userrec* src, userrec* dst)
+ virtual void OnWhois(User* src, User* dst)
{
if (dst->IsModeSet('k'))
{
}
}
- virtual int OnKill(userrec* src, userrec* dst, const std::string &reason)
+ virtual int OnKill(User* src, User* dst, const std::string &reason)
{
if (src == NULL)
return 0;
return 0;
}
- virtual int OnWhoisLine(userrec* src, userrec* dst, int &numeric, std::string &text)
+ virtual int OnWhoisLine(User* src, User* dst, int &numeric, std::string &text)
{
return ((src != dst) && (numeric == 319) && dst->IsModeSet('k'));
}