- Srv = Me;
- OnRehash("");
- Srv->AddExtendedMode('G',MT_CHANNEL,false,0,0);
- Srv->AddExtendedMode('G',MT_CLIENT,false,0,0);
- }
-
- void Implements(char* List)
- {
- List[I_OnRehash] = List[I_On005Numeric] = List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = List[I_OnExtendedMode] = 1;
- }
-
-
- virtual void On005Numeric(std::string &output)
- {
- InsertMode(output,"G",4);
- }
-
-
- virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms)
- {
- // check if this is our mode character...
- if (modechar == 'G')
- {
- return 1;
- }
- else
+ OnRehash(NULL,"");
+ cu = new CensorUser(ServerInstance);
+ cc = new CensorChannel(ServerInstance);
+ if (!ServerInstance->Modes->AddMode(cu) || !ServerInstance->Modes->AddMode(cc))