diff options
Diffstat (limited to 'src/core/enc_none.cpp')
-rw-r--r-- | src/core/enc_none.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/enc_none.cpp b/src/core/enc_none.cpp index 280c86bd2..c89db82ae 100644 --- a/src/core/enc_none.cpp +++ b/src/core/enc_none.cpp @@ -53,7 +53,7 @@ class ENone : public Module return EVENT_ALLOW; } - EventReturn OnCheckPassword(const std::string &hashm, std::string &plaintext, std::string &password) + EventReturn OnCheckPassword(const std::string &hashm, std::string &plaintext, std::string &password) { if (hashm != "plain") return EVENT_CONTINUE; @@ -61,10 +61,10 @@ class ENone : public Module this->OnEncrypt(plaintext, buf); if(!password.compare(buf)) { - /* if we are NOT the first module in the list, + /* if we are NOT the first module in the list, * we want to re-encrypt the pass with the new encryption */ - if (Config.EncModuleList.front().compare(this->name)) + if (Config.EncModuleList.front() == this->name) { enc_encrypt(plaintext, password); } |