| 1107 | |
| 1108 | |
| 1109 | bool cConnection::HandleClientPluginMessage(void) |
| 1110 | { |
| 1111 | HANDLE_CLIENT_PACKET_READ(ReadVarUTF8String, AString, ChannelName); |
| 1112 | HANDLE_CLIENT_PACKET_READ(ReadBEShort, short, Length); |
| 1113 | AString Data; |
| 1114 | if (!m_ClientBuffer.ReadString(Data, Length)) |
| 1115 | { |
| 1116 | return false; |
| 1117 | } |
| 1118 | Log("Received a PACKET_PLUGIN_MESSAGE from the client"); |
| 1119 | Log(" ChannelName = \"%s\"", ChannelName.c_str()); |
| 1120 | DataLog(Data.data(), Length, " Data: %d bytes", Length); |
| 1121 | COPY_TO_SERVER(); |
| 1122 | return true; |
| 1123 | } |
| 1124 | |
| 1125 | |
| 1126 |
nothing calls this directly
no test coverage detected