RESP3: SETNAME option for HELLO.

This commit is contained in:
antirez 2019-02-25 16:56:58 +01:00
parent ea75d7d52b
commit 43b7a5fa1c

View File

@ -2057,6 +2057,9 @@ void helloCommand(client *c) {
return; return;
} }
j += 2; j += 2;
} else if (!strcasecmp(opt,"SETNAME") && moreargs) {
if (clientSetNameOrReply(c, c->argv[j+1]) == C_ERR) return;
j++;
} else { } else {
addReplyErrorFormat(c,"Syntax error in HELLO option '%s'",opt); addReplyErrorFormat(c,"Syntax error in HELLO option '%s'",opt);
return; return;