From a4ec91979ebf496ee9bb0e3685b4ccdd1f46b0b9 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 28 Aug 2024 11:43:50 +0200 Subject: [PATCH] implemented send part of version cmd on client-side --- src/chat/main/client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chat/main/client.c b/src/chat/main/client.c index 7e61a85..48c2b6d 100644 --- a/src/chat/main/client.c +++ b/src/chat/main/client.c @@ -185,6 +185,9 @@ int main(void) } else if (command(line, WHY2_CHAT_COMMAND_LIST, &cmd_arg)) //LIST CMD { why2_send_socket(WHY2_CHAT_CODE_LIST, NULL, listen_socket); + } else if (command(line, WHY2_CHAT_COMMAND_VERSION, &cmd_arg)) //VERSION CMD + { + why2_send_socket(WHY2_CHAT_CODE_VERSION, NULL, listen_socket); } else { printf("\nInvalid command! Use \"" WHY2_CHAT_COMMAND_PREFIX WHY2_CHAT_COMMAND_HELP "\" for list of commands.\n\n>>> ");