X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fssl.h;h=9deafb8305be4e2d2c05ed89672850928db2afb4;hb=561f4f642e5bc391300dd33989c3624986808ed8;hp=8792d6ebcc767428177faf2eb9bef12bf42920a6;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/ssl.h b/src/modules/ssl.h index 8792d6ebc..9deafb830 100644 --- a/src/modules/ssl.h +++ b/src/modules/ssl.h @@ -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)