PUNSUBSCRIBE [pattern [pattern ...]] */
| 390 | |
| 391 | /* PUNSUBSCRIBE [pattern [pattern ...]] */ |
| 392 | void punsubscribeCommand(client *c) { |
| 393 | if (c->argc == 1) { |
| 394 | pubsubUnsubscribeAllPatterns(c,1); |
| 395 | } else { |
| 396 | int j; |
| 397 | |
| 398 | for (j = 1; j < c->argc; j++) |
| 399 | pubsubUnsubscribePattern(c,c->argv[j],1); |
| 400 | } |
| 401 | if (clientSubscriptionsCount(c) == 0) c->flags &= ~CLIENT_PUBSUB; |
| 402 | } |
| 403 | |
| 404 | /* PUBLISH <channel> <message> */ |
| 405 | void publishCommand(client *c) { |
nothing calls this directly
no test coverage detected