summaryrefslogtreecommitdiff
path: root/modules/core/enc_old.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/enc_old.cpp')
-rw-r--r--modules/core/enc_old.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/enc_old.cpp b/modules/core/enc_old.cpp
index 689625fe1..e68887c49 100644
--- a/modules/core/enc_old.cpp
+++ b/modules/core/enc_old.cpp
@@ -325,7 +325,7 @@ class EOld : public Module
this->SetAuthor("Anope");
Implementation i[] = { I_OnEncrypt, I_OnCheckAuthentication };
- ModuleManager::Attach(i, this, 2);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
}
EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest)