MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / checkCommand

Method checkCommand

src/bzadmin/StdInUI.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33bool StdInUI::checkCommand(std::string& str) {
34 if (std::cin.eof()) {
35 str = "/quit";
36 return true;
37 }
38 std::getline(std::cin, str);
39 if (str == "") {
40 return false;
41 }
42 return true;
43}
44
45
46BZAdminUI* StdInUI::creator(BZAdminClient& client) {

Callers 1

runLoopMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected