summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-12 00:17:19 +0000
committerSadie Powell <sadie@witchery.services>2024-03-12 00:17:49 +0000
commita15f165a1d2d71c3db54d57779bec34914cbc171 (patch)
treeb3b5883b782c4b76aeb2285f65fed838d9342760 /modules
parent77435dd0d9642837758db74f28ca19fba9a2a4bb (diff)
Fix an inverted condition in enc_bcrypt.
Diffstat (limited to 'modules')
-rw-r--r--modules/encryption/enc_bcrypt.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}