implemented send part of version cmd on client-side
This commit is contained in:
parent
de4b6a39bf
commit
a4ec91979e
@ -185,6 +185,9 @@ int main(void)
|
|||||||
} else if (command(line, WHY2_CHAT_COMMAND_LIST, &cmd_arg)) //LIST CMD
|
} else if (command(line, WHY2_CHAT_COMMAND_LIST, &cmd_arg)) //LIST CMD
|
||||||
{
|
{
|
||||||
why2_send_socket(WHY2_CHAT_CODE_LIST, NULL, listen_socket);
|
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
|
} else
|
||||||
{
|
{
|
||||||
printf("\nInvalid command! Use \"" WHY2_CHAT_COMMAND_PREFIX WHY2_CHAT_COMMAND_HELP "\" for list of commands.\n\n>>> ");
|
printf("\nInvalid command! Use \"" WHY2_CHAT_COMMAND_PREFIX WHY2_CHAT_COMMAND_HELP "\" for list of commands.\n\n>>> ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user