mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Support for CLIENT KILL TYPE MASTER.
This commit is contained in:
parent
e6f39338e6
commit
3c8861a73a
@ -1410,9 +1410,7 @@ void clientCommand(client *c) {
|
|||||||
while ((ln = listNext(&li)) != NULL) {
|
while ((ln = listNext(&li)) != NULL) {
|
||||||
client = listNodeValue(ln);
|
client = listNodeValue(ln);
|
||||||
if (addr && strcmp(getClientPeerId(client),addr) != 0) continue;
|
if (addr && strcmp(getClientPeerId(client),addr) != 0) continue;
|
||||||
if (type != -1 &&
|
if (type != -1 && getClientType(client) != type) continue;
|
||||||
(client->flags & CLIENT_MASTER ||
|
|
||||||
getClientType(client) != type)) continue;
|
|
||||||
if (id != 0 && client->id != id) continue;
|
if (id != 0 && client->id != id) continue;
|
||||||
if (c == client && skipme) continue;
|
if (c == client && skipme) continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user