public:
ModuleWaitPong()
: ext("waitpong_pingstr", this)
+ {
+ }
+
+ void init()
{
ServerInstance->Modules->AddService(ext);
OnRehash(NULL);
Implementation eventlist[] = { I_OnUserRegister, I_OnCheckReady, I_OnPreCommand, I_OnRehash };
- ServerInstance->Modules->Attach(eventlist, this, 4);
+ ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
}
void OnRehash(User* user)