diff options
| author | 2010-08-28 20:18:22 -0400 | |
|---|---|---|
| committer | 2010-08-28 20:18:22 -0400 | |
| commit | eb056ec67eb774e8ba4751911c22d2973927271d (patch) | |
| tree | f119ddb2ec2c77ea796fac555244c42f09f6d066 /src/modules/m_delaymsg.cpp | |
| parent | Fix missing hook registrations (diff) | |
Avoid future bugs with Attach
Diffstat (limited to 'src/modules/m_delaymsg.cpp')
| -rw-r--r-- | src/modules/m_delaymsg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_delaymsg.cpp b/src/modules/m_delaymsg.cpp index d8a3a14a9..53aff79b6 100644 --- a/src/modules/m_delaymsg.cpp +++ b/src/modules/m_delaymsg.cpp @@ -49,7 +49,7 @@ class ModuleDelayMsg : public Module ServerInstance->Modules->AddService(djm); ServerInstance->Extensions.Register(&djm.jointime); Implementation eventlist[] = { I_OnUserJoin, I_OnUserPreMessage}; - ServerInstance->Modules->Attach(eventlist, this, 2); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } ~ModuleDelayMsg(); Version GetVersion(); |
