From ea9b2a28dd3d14d430c8a7a186494d5fce8604ea Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Fri, 4 Nov 2022 23:14:57 +0100 Subject: [PATCH] Fix wrongly copied condition --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 6143e7a..a1ada9c 100644 --- a/src/server.c +++ b/src/server.c @@ -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; }