| 409 | |
| 410 | |
| 411 | void cClientHandle::HandlePing(void) |
| 412 | { |
| 413 | // Somebody tries to retrieve information about the server |
| 414 | AString Reply; |
| 415 | Printf(Reply, "%s%s%i%s%i", |
| 416 | cRoot::Get()->GetServer()->GetDescription().c_str(), |
| 417 | cChatColor::Delimiter.c_str(), |
| 418 | cRoot::Get()->GetServer()->GetNumPlayers(), |
| 419 | cChatColor::Delimiter.c_str(), |
| 420 | cRoot::Get()->GetServer()->GetMaxPlayers() |
| 421 | ); |
| 422 | Kick(Reply.c_str()); |
| 423 | } |
| 424 | |
| 425 | |
| 426 |
no test coverage detected