From cfb7478ab948714643511b3e6fb6a3fe93048795 Mon Sep 17 00:00:00 2001 From: "Simon V. Lejel" Date: Sat, 10 Feb 2024 14:26:59 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Make=20it=20possible=20to=20exit?= =?UTF-8?q?=20the=20client?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/main.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/main.cc b/src/client/main.cc index 29a6657..db4317a 100644 --- a/src/client/main.cc +++ b/src/client/main.cc @@ -2,6 +2,7 @@ #include #include #include +#include #include #include @@ -39,7 +40,8 @@ int main() { cout << "Type message to server: "; cin >> message.content; - if (strcmp(message.content, "exit") == 0) { + if (message.content == "exit") { + cout << "BYE!" << endl; break; }