| 471 | |
| 472 | |
| 473 | void cRoot::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallback & a_Output) |
| 474 | { |
| 475 | // Some commands are built-in: |
| 476 | if (a_Cmd == "stop") |
| 477 | { |
| 478 | m_bStop = true; |
| 479 | } |
| 480 | else if (a_Cmd == "restart") |
| 481 | { |
| 482 | m_bRestart = true; |
| 483 | } |
| 484 | |
| 485 | LOG("Executing console command: \"%s\"", a_Cmd.c_str()); |
| 486 | m_Server->ExecuteConsoleCommand(a_Cmd, a_Output); |
| 487 | } |
| 488 | |
| 489 | |
| 490 |
no test coverage detected