diff options
| author | Adam <Adam@anope.org> | 2014-12-10 01:29:18 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2014-12-10 01:29:18 -0500 |
| commit | 3e5a5e1c669f6027b897f7358d45f92e1552f746 (patch) | |
| tree | 5be9d41890d79eb0472f374b3f2a0ab9b36b1941 /modules/encryption | |
| parent | 42238034490fb5479d787bd1695750387d508200 (diff) | |
Use a triat class for event names instead of having to manually give them places, which is much less error prone
Diffstat (limited to 'modules/encryption')
| -rw-r--r-- | modules/encryption/enc_bcrypt.cpp | 4 | ||||
| -rw-r--r-- | modules/encryption/enc_md5.cpp | 4 | ||||
| -rw-r--r-- | modules/encryption/enc_none.cpp | 6 | ||||
| -rw-r--r-- | modules/encryption/enc_old.cpp | 4 | ||||
| -rw-r--r-- | modules/encryption/enc_sha1.cpp | 4 | ||||
| -rw-r--r-- | modules/encryption/enc_sha256.cpp | 4 |
6 files changed, 13 insertions, 13 deletions
diff --git a/modules/encryption/enc_bcrypt.cpp b/modules/encryption/enc_bcrypt.cpp index 1a4e00e20..98dd30664 100644 --- a/modules/encryption/enc_bcrypt.cpp +++ b/modules/encryption/enc_bcrypt.cpp @@ -877,8 +877,8 @@ class EBCRYPT : public Module public: EBCRYPT(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, ENCRYPTION | VENDOR | EXTRA) - , EventHook<Event::Encrypt>("OnEncrypt") - , EventHook<Event::CheckAuthentication>("OnCheckAuthentication") + , EventHook<Event::Encrypt>() + , EventHook<Event::CheckAuthentication>() , rounds(10) { // Test a pre-calculated hash diff --git a/modules/encryption/enc_md5.cpp b/modules/encryption/enc_md5.cpp index 3de183adb..79ab3dcd4 100644 --- a/modules/encryption/enc_md5.cpp +++ b/modules/encryption/enc_md5.cpp @@ -345,8 +345,8 @@ class EMD5 : public Module public: EMD5(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, ENCRYPTION | VENDOR) - , EventHook<Event::Encrypt>("OnEncrypt") - , EventHook<Event::CheckAuthentication>("OnCheckAuthentication") + , EventHook<Event::Encrypt>() + , EventHook<Event::CheckAuthentication>() , md5provider(this) { if (ModuleManager::FindFirstOf(ENCRYPTION) == this) diff --git a/modules/encryption/enc_none.cpp b/modules/encryption/enc_none.cpp index 86f01ae38..f9b1d1f96 100644 --- a/modules/encryption/enc_none.cpp +++ b/modules/encryption/enc_none.cpp @@ -16,9 +16,9 @@ class ENone : public Module { public: ENone(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, ENCRYPTION | VENDOR) - , EventHook<Event::Encrypt>("OnEncrypt") - , EventHook<Event::Decrypt>("OnDecrypt") - , EventHook<Event::CheckAuthentication>("OnCheckAuthentication") + , EventHook<Event::Encrypt>() + , EventHook<Event::Decrypt>() + , EventHook<Event::CheckAuthentication>() { } diff --git a/modules/encryption/enc_old.cpp b/modules/encryption/enc_old.cpp index ec2c076cf..58be6f0da 100644 --- a/modules/encryption/enc_old.cpp +++ b/modules/encryption/enc_old.cpp @@ -44,8 +44,8 @@ class EOld : public Module public: EOld(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, ENCRYPTION | VENDOR) - , EventHook<Event::Encrypt>("OnEncrypt") - , EventHook<Event::CheckAuthentication>("OnCheckAuthentication") + , EventHook<Event::Encrypt>() + , EventHook<Event::CheckAuthentication>() , oldmd5provider(this) { if (ModuleManager::FindFirstOf(ENCRYPTION) == this) diff --git a/modules/encryption/enc_sha1.cpp b/modules/encryption/enc_sha1.cpp index 010add276..6fae784f2 100644 --- a/modules/encryption/enc_sha1.cpp +++ b/modules/encryption/enc_sha1.cpp @@ -200,8 +200,8 @@ class ESHA1 : public Module public: ESHA1(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, ENCRYPTION | VENDOR) - , EventHook<Event::Encrypt>("OnEncrypt") - , EventHook<Event::CheckAuthentication>("OnCheckAuthentication") + , EventHook<Event::Encrypt>() + , EventHook<Event::CheckAuthentication>() , sha1provider(this) { if (ModuleManager::FindFirstOf(ENCRYPTION) == this) diff --git a/modules/encryption/enc_sha256.cpp b/modules/encryption/enc_sha256.cpp index e7989c24d..1f518cae2 100644 --- a/modules/encryption/enc_sha256.cpp +++ b/modules/encryption/enc_sha256.cpp @@ -275,8 +275,8 @@ class ESHA256 : public Module public: ESHA256(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, ENCRYPTION | VENDOR) - , EventHook<Event::Encrypt>("OnEncrypt") - , EventHook<Event::CheckAuthentication>("OnCheckAuthentication") + , EventHook<Event::Encrypt>() + , EventHook<Event::CheckAuthentication>() , sha256provider(this) { |
