implemented send part of version cmd on client-side

This commit is contained in:
Václav Šmejkal 2024-08-28 11:43:50 +02:00
parent de4b6a39bf
commit a4ec91979e
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

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