Fix call to list_groups

This commit is contained in:
flyingscorpio@clevo 2022-11-04 23:43:30 +01:00
parent 56aab1cbec
commit 57edd47561

View file

@ -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);