Skip to content

Commit 2ffedb2

Browse files
feat: view command
1 parent 6e5e490 commit 2ffedb2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

client.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ void chat(int sock_fd){
3939
bzero(s_buff, sizeof(s_buff));
4040
std::cout << "Enter a message or command to send: ";
4141
std::cout << "\n*****\n";
42-
std::cout << "Available commands: \n" << std::setw(20) << std::endl;
43-
std::cout << "/whisper - " << "Send data to a particular client based on their ID - [Example usage: /whisper 29 Hello James]" << std::setw(10);
42+
std::cout << "Available commands: \n" << std::endl;
43+
std::cout << "/whisper - " << "Send data to a particular client based on their ID - [Example usage: /whisper 29 Hello James]" << std::setw(10) << std::endl;
44+
std::cout << "/view - " << "View all connected clients - [Usage: /view]" << std::setw(10);
4445
std::cout << "\n*****\n";
4546

4647
fgets(s_buff, sizeof(s_buff), stdin);

0 commit comments

Comments
 (0)