summaryrefslogtreecommitdiff
path: root/modules/encryption/none.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-05-23 19:09:47 +0100
committerPeter Powell <petpow@saberuk.com>2016-09-13 22:33:41 +0100
commit3b0f52c92b744836520af4b9915478569f297d39 (patch)
tree1816865eccc62fb60a9e546a298dfc74e51504f4 /modules/encryption/none.cpp
parent164ad71fc36f79efc823b7523de79603f6e0ac27 (diff)
Remove Anope::Decrypt now encryption is mandated.
Diffstat (limited to 'modules/encryption/none.cpp')
-rw-r--r--modules/encryption/none.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/encryption/none.cpp b/modules/encryption/none.cpp
index 840ab7b42..3b1f49d33 100644
--- a/modules/encryption/none.cpp
+++ b/modules/encryption/none.cpp
@@ -21,13 +21,11 @@
class ENone : public Module
, public EventHook<Event::Encrypt>
- , public EventHook<Event::Decrypt>
, public EventHook<Event::CheckAuthentication>
{
public:
ENone(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, ENCRYPTION | VENDOR)
, EventHook<Event::Encrypt>(this)
- , EventHook<Event::Decrypt>(this)
, EventHook<Event::CheckAuthentication>(this)
{
if (ModuleManager::FindFirstOf(ENCRYPTION) == this)
@@ -45,16 +43,6 @@ class ENone : public Module
return EVENT_ALLOW;
}
- EventReturn OnDecrypt(const Anope::string &hashm, const Anope::string &src, Anope::string &dest) override
- {
- if (!hashm.equals_cs("plain"))
- return EVENT_CONTINUE;
- size_t pos = src.find(':');
- Anope::string buf = src.substr(pos + 1);
- Anope::B64Decode(buf, dest);
- return EVENT_ALLOW;
- }
-
void OnCheckAuthentication(User *, NickServ::IdentifyRequest *req) override
{
NickServ::Nick *na = NickServ::FindNick(req->GetAccount());