class ModuleServProtectMode : public Module
{
-
+
ServProtectMode* bm;
public:
ModuleServProtectMode(InspIRCd* Me)
: Module(Me)
{
-
+
bm = new ServProtectMode(ServerInstance);
if (!ServerInstance->Modes->AddMode(bm))
throw ModuleException("Could not add new modes!");
ServerInstance->Modules->Attach(eventlist, this, 4);
}
-
+
virtual ~ModuleServProtectMode()
{
ServerInstance->Modes->DelMode(bm);
delete bm;
}
-
+
virtual Version GetVersion()
{
return Version(1,2,0,0,VF_COMMON,API_VERSION);
if (u->IsModeSet('k') && ServerInstance->Modes->ModeString(u, chan, false).find(mode) != std::string::npos)
{
/* BZZZT, Denied! */
- user->WriteNumeric(482, "%s %s :You are not permitted to deop %s services", user->nick.c_str(), chan->name.c_str(), ServerInstance->Config->Network);
+ user->WriteNumeric(482, "%s %s :You are not permitted to remove privileges from %s services", user->nick.c_str(), chan->name.c_str(), ServerInstance->Config->Network);
return ACR_DENY;
}
}