🐛 Fix multiple messages on spaces
This commit is contained in:
parent
48ae343609
commit
2eadc6cb89
1 changed files with 1 additions and 2 deletions
|
@ -122,10 +122,9 @@ int main() {
|
||||||
// Create a new message object
|
// Create a new message object
|
||||||
Message message;
|
Message message;
|
||||||
|
|
||||||
// FIXME Seems to send multiple messages if content contains spaces
|
|
||||||
// Get the content of the message from the user
|
// Get the content of the message from the user
|
||||||
cout << "Type message to server: ";
|
cout << "Type message to server: ";
|
||||||
cin >> message.content;
|
std::getline(cin, message.content);
|
||||||
|
|
||||||
// Exit the program if the user typed "exit" as the content of the
|
// Exit the program if the user typed "exit" as the content of the
|
||||||
// message
|
// message
|
||||||
|
|
Loading…
Reference in a new issue