fix interactive mode.
This commit is contained in:
@@ -75,7 +75,7 @@ bool connect(const char* host, int port, bool once=true)
|
|||||||
string message;
|
string message;
|
||||||
|
|
||||||
if (once == false) {
|
if (once == false) {
|
||||||
cout << "online: ";
|
cout << host << ": ";
|
||||||
getline(cin, message);
|
getline(cin, message);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -98,6 +98,7 @@ bool connect(const char* host, int port, bool once=true)
|
|||||||
|
|
||||||
cout << data;
|
cout << data;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
break;
|
break;
|
||||||
|
|
||||||
} while (once == false);
|
} while (once == false);
|
||||||
|
|||||||
Reference in New Issue
Block a user