changeset 1937:334b742fdeb8

Fix -q to hide the banner Got lost merging the DEBUG/TRACE level patch
author Matt Johnston <matt@ucc.asn.au>
date Fri, 01 Apr 2022 14:33:27 +0800
parents 4528afefe45d
children 77bc00dcc19f
files cli-auth.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cli-auth.c	Fri Apr 01 14:13:52 2022 +0800
+++ b/cli-auth.c	Fri Apr 01 14:33:27 2022 +0800
@@ -82,6 +82,11 @@
 		return;
 	}
 
+	if (cli_opts.quiet) {
+		TRACE(("not showing banner"))
+		return;
+	}
+
 	banner = buf_getstring(ses.payload, &bannerlen);
 	buf_eatstring(ses.payload); /* The language string */