- Srv = Me;
- Srv->AddExtendedMode('c',MT_CHANNEL,false,0,0);
+ bc = new BlockColor(ServerInstance);
+ if (!ServerInstance->Modes->AddMode(bc))
+ throw ModuleException("Could not add new modes!");
+ Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice, I_On005Numeric };
+ ServerInstance->Modules->Attach(eventlist, this, 3);