- ModuleOperLog() {
-
- Implementation eventlist[] = { I_OnPreCommand, I_On005Numeric };
- ServerInstance->Modules->Attach(eventlist, this, 2);
+ void init()
+ {
+ Implementation eventlist[] = { I_OnPreCommand, I_On005Numeric, I_OnRehash };
+ ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
+ ServerInstance->SNO->EnableSnomask('r', "OPERLOG");
+ OnRehash(NULL);