Fix wrongly copied condition

This commit is contained in:
flyingscorpio@clevo 2022-11-04 23:14:57 +01:00
parent e6d035909b
commit ea9b2a28dd

View file

@ -622,7 +622,7 @@ void *Dispatcher(void *arg) {
cmd_send_message(SERVER_ID, sender_id, error_message);
break;
}
if ((receiver_id < 0) || ((receiver_id == 0) && (endptr == token))) {
if (receiver_id < 0) {
fprintf(stderr, "Invalid receiver ID \"%s\"\n", token);
break;
}