- if (target_type == TYPE_CHANNEL)
- {
- chanrec* c = (chanrec*)dest;
- char ctext[MAXBUF];
- char *ctptr = ctext;
- snprintf(ctext,MAXBUF,"%s",text.c_str());
+ bc = new BlockColor(ServerInstance);
+ if (!ServerInstance->AddMode(bc))
+ throw ModuleException("Could not add new modes!");
+ Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice };
+ ServerInstance->Modules->Attach(eventlist, this, 2);
+ }
+