#include "users.h"
#include "channels.h"
#include "modules.h"
-#include "helperfuncs.h"
+
#include "inspircd.h"
/* $ModDesc: Provides support for unreal-style channel mode +c */
-extern InspIRCd* ServerInstance;
+
class BlockColor : public ModeHandler
{
class ModuleBlockColour : public Module
{
- Server *Srv;
+
BlockColor *bc;
public:
{
bc = new BlockColor(ServerInstance);
- Srv->AddMode(bc, 'c');
+ ServerInstance->AddMode(bc, 'c');
}
void Implements(char* List)
virtual void On005Numeric(std::string &output)
{
- ServerInstance->ModeGrok->InsertMode(output,"c",4);
}
virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text, char status)