]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/ssl.h
Release 2.0.15
[user/henk/code/inspircd.git] / src / modules / ssl.h
index 8792d6ebcc767428177faf2eb9bef12bf42920a6..9deafb8305be4e2d2c05ed89672850928db2afb4 100644 (file)
@@ -121,7 +121,7 @@ class ssl_cert : public refcountbase
        std::string GetMetaLine()
        {
                std::stringstream value;
-               bool hasError = error.length();
+               bool hasError = !error.empty();
                value << (IsInvalid() ? "v" : "V") << (IsTrusted() ? "T" : "t") << (IsRevoked() ? "R" : "r")
                        << (IsUnknownSigner() ? "s" : "S") << (hasError ? "E" : "e") << " ";
                if (hasError)