- : maxwatch(32), cmdw(this, maxwatch), sw(this)
+ : maxwatch(32), cmdw(this, maxwatch), sw(this)
- ServerInstance->AddCommand(&cmdw);
- ServerInstance->AddCommand(&sw);
- ServerInstance->Extensions.Register(&cmdw.ext);
+ }
+
+ void init()
+ {
+ OnRehash(NULL);
+ ServerInstance->Modules->AddService(cmdw);
+ ServerInstance->Modules->AddService(sw);
+ ServerInstance->Modules->AddService(cmdw.ext);
Implementation eventlist[] = { I_OnRehash, I_OnGarbageCollect, I_OnUserQuit, I_OnPostConnect, I_OnUserPostNick, I_On005Numeric, I_OnSetAway };
Implementation eventlist[] = { I_OnRehash, I_OnGarbageCollect, I_OnUserQuit, I_OnPostConnect, I_OnUserPostNick, I_On005Numeric, I_OnSetAway };