fix interactive mode.

This commit is contained in:
Roland Jax
2014-11-25 20:18:11 +01:00
parent 68c15ce66e
commit 11b522a342
+2 -1
View File
@@ -75,7 +75,7 @@ bool connect(const char* host, int port, bool once=true)
string message;
if (once == false) {
cout << "online: ";
cout << host << ": ";
getline(cin, message);
}
else {
@@ -98,6 +98,7 @@ bool connect(const char* host, int port, bool once=true)
cout << data;
}
else
break;
} while (once == false);