| 1374 | } |
| 1375 | |
| 1376 | static void ConsoleCommandSay(InteractiveConsole& console, const arguments_t& argv) |
| 1377 | { |
| 1378 | if (Network::GetMode() == Network::Mode::none || Network::GetStatus() != Network::Status::connected |
| 1379 | || Network::GetAuthstatus() != Network::Auth::ok) |
| 1380 | { |
| 1381 | console.WriteFormatLine("This command only works in multiplayer mode."); |
| 1382 | return; |
| 1383 | } |
| 1384 | |
| 1385 | if (!argv.empty()) |
| 1386 | { |
| 1387 | Network::SendChat(argv[0].c_str()); |
| 1388 | return; |
| 1389 | } |
| 1390 | |
| 1391 | console.WriteFormatLine("Input your message"); |
| 1392 | } |
| 1393 | |
| 1394 | static void ConsoleCommandReplayStartRecord(InteractiveConsole& console, const arguments_t& argv) |
| 1395 | { |
nothing calls this directly
no test coverage detected