* Send a chat message from external source. * @param source Name of the source this message came from. * @param colour TextColour to use for the message. * @param user Name of the user who sent the message. * @param msg The actual message. */
| 1367 | * @param msg The actual message. |
| 1368 | */ |
| 1369 | void NetworkServerSendExternalChat(std::string_view source, TextColour colour, std::string_view user, std::string_view msg) |
| 1370 | { |
| 1371 | for (NetworkClientSocket *cs : NetworkClientSocket::Iterate()) { |
| 1372 | if (cs->status >= ServerNetworkGameSocketHandler::STATUS_AUTHORIZED) cs->SendExternalChat(source, colour, user, msg); |
| 1373 | } |
| 1374 | NetworkTextMessage(NETWORK_ACTION_EXTERNAL_CHAT, colour, false, user, msg, source); |
| 1375 | } |
| 1376 | |
| 1377 | NetworkRecvStatus ServerNetworkGameSocketHandler::Receive_CLIENT_CHAT(Packet &p) |
| 1378 | { |
no test coverage detected