- mycommand = new cmd_remove(Me, supportnokicks);
- mycommand2 = new cmd_fpart(Me, supportnokicks);
- Me->AddCommand(mycommand);
- Me->AddCommand(mycommand2);
- OnRehash("");
+ mycommand = new CommandRemove(ServerInstance, supportnokicks);
+ mycommand2 = new CommandFpart(ServerInstance, supportnokicks);
+ ServerInstance->AddCommand(mycommand);
+ ServerInstance->AddCommand(mycommand2);
+ OnRehash(NULL,"");
+ Implementation eventlist[] = { I_On005Numeric, I_OnRehash };
+ ServerInstance->Modules->Attach(eventlist, this, 2);