From 6aaef3e705507566631905560b1c903f8ae22ab3 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 24 Feb 2021 09:22:15 +0000 Subject: [PATCH] Correct client_prefix so it returns 1 if in prefix, not 0. --- format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/format.c b/format.c index 9fa6fc47..a9694bab 100644 --- a/format.c +++ b/format.c @@ -1319,8 +1319,8 @@ format_cb_client_prefix(struct format_tree *ft) if (ft->c != NULL) { name = server_client_get_key_table(ft->c); if (strcmp(ft->c->keytable->name, name) == 0) - return (xstrdup("1")); - return (xstrdup("0")); + return (xstrdup("0")); + return (xstrdup("1")); } return (NULL); }