PUNSUBSCRIBE [pattern [pattern ...]] */
| 410 | |
| 411 | /* PUNSUBSCRIBE [pattern [pattern ...]] */ |
| 412 | void punsubscribeCommand(client *c) { |
| 413 | if (c->argc == 1) { |
| 414 | pubsubUnsubscribeAllPatterns(c,1); |
| 415 | } else { |
| 416 | int j; |
| 417 | |
| 418 | for (j = 1; j < c->argc; j++) |
| 419 | pubsubUnsubscribePattern(c,c->argv[j],1); |
| 420 | } |
| 421 | if (clientSubscriptionsCount(c) == 0) c->flags &= ~CLIENT_PUBSUB; |
| 422 | } |
| 423 | |
| 424 | /* PUBLISH <channel> <message> */ |
| 425 | void publishCommand(client *c) { |
nothing calls this directly
no test coverage detected