]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ircv3_sts.cpp
Fix an inverted condition in the ircv3_sts module.
[user/henk/code/inspircd.git] / src / modules / m_ircv3_sts.cpp
index 68f4c46c6d3a5621fe685613cfdd68dda9fe108b..cab671b70c5ae00830b3a5c4099fb386e25eee8d 100644 (file)
@@ -36,7 +36,7 @@ class STSCap : public Cap::Capability
                        return false;
 
                // Don't send the cap to clients in a class which has STS disabled.
-               if (user->GetClass()->config->getBool("usests", true))
+               if (!user->GetClass()->config->getBool("usests", true))
                        return false;
 
                // Plaintext listeners have their own policy.