public:
ModuleCustomTitle() : cmd(this)
{
- ServerInstance->AddCommand(&cmd);
- ServerInstance->Extensions.Register(&cmd.ctitle);
+ }
+
+ void init()
+ {
+ ServerInstance->Modules->AddService(cmd);
+ ServerInstance->Modules->AddService(cmd.ctitle);
ServerInstance->Modules->Attach(I_OnWhoisLine, this);
}