*/
+/* $ModDesc: Channel half-operator mode provider */
+
#include "inspircd.h"
class ModeChannelHalfOp : public ModeHandler
public:
ModuleHalfop() : mh(this)
{
- if (!ServerInstance->Modes->AddMode(&mh))
- throw ModuleException("Could not add new modes!");
}
- ~ModuleHalfop()
+ void init()
{
- ServerInstance->Modes->DelMode(&mh);
+ ServerInstance->Modules->AddService(mh);
}
Version GetVersion()