From a15f165a1d2d71c3db54d57779bec34914cbc171 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 12 Mar 2024 00:17:19 +0000 Subject: [PATCH] Fix an inverted condition in enc_bcrypt. --- modules/encryption/enc_bcrypt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/encryption/enc_bcrypt.cpp b/modules/encryption/enc_bcrypt.cpp index 0800b2d66..8af775e6d 100644 --- a/modules/encryption/enc_bcrypt.cpp +++ b/modules/encryption/enc_bcrypt.cpp @@ -63,7 +63,7 @@ public: Anope::string Finalize() override { auto salt = GenerateSalt(); - if (!salt.empty()) + if (salt.empty()) return {}; return Hash(this->buffer, salt); }