From 21f92e9e340f9371ee06ca87f3b16dbe0dbf0fea Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 25 Feb 2019 16:56:58 +0100 Subject: [PATCH] RESP3: SETNAME option for HELLO. --- src/networking.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/networking.c b/src/networking.c index 2e70696a..5282c6a0 100644 --- a/src/networking.c +++ b/src/networking.c @@ -2057,6 +2057,9 @@ void helloCommand(client *c) { return; } j += 2; + } else if (!strcasecmp(opt,"SETNAME") && moreargs) { + if (clientSetNameOrReply(c, c->argv[j+1]) == C_ERR) return; + j++; } else { addReplyErrorFormat(c,"Syntax error in HELLO option '%s'",opt); return;