Fix call to list_groups
This commit is contained in:
parent
56aab1cbec
commit
57edd47561
1 changed files with 9 additions and 9 deletions
18
src/server.c
18
src/server.c
|
@ -581,16 +581,16 @@ void *Dispatcher(void *arg) {
|
|||
cmd_set_group(sender_id, token);
|
||||
break;
|
||||
case CMD_LIST:
|
||||
token = strtok_r(rest, " ", &rest);
|
||||
if (token[0] == CMD_LIST_GROUP ) {
|
||||
printf("cmd_list_groups\n");
|
||||
cmd_list_groups(sender_id);
|
||||
break;
|
||||
} else {
|
||||
printf("cmd_list\n");
|
||||
cmd_list_clients(sender_id);
|
||||
break;
|
||||
if ((token = strtok_r(rest, " ", &rest)) != NULL) {
|
||||
if (token[0] == CMD_LIST_GROUP ) {
|
||||
printf("cmd_list_groups\n");
|
||||
cmd_list_groups(sender_id);
|
||||
break;
|
||||
}
|
||||
}
|
||||
printf("cmd_list\n");
|
||||
cmd_list_clients(sender_id);
|
||||
break;
|
||||
case CMD_BROADCAST:
|
||||
printf("cmd_broadcast (from %d)\n", sender_id);
|
||||
cmd_broadcast(sender_id, rest);
|
||||
|
|
Loading…
Reference in a new issue