| 2032 | |
| 2033 | |
| 2034 | bool cConnection::HandleServerPluginMessage(void) |
| 2035 | { |
| 2036 | HANDLE_SERVER_PACKET_READ(ReadVarUTF8String, AString, ChannelName); |
| 2037 | HANDLE_SERVER_PACKET_READ(ReadBEShort, short, Length); |
| 2038 | AString Data; |
| 2039 | if (!m_ServerBuffer.ReadString(Data, Length)) |
| 2040 | { |
| 2041 | return false; |
| 2042 | } |
| 2043 | Log("Received a PACKET_PLUGIN_MESSAGE from the server"); |
| 2044 | Log(" ChannelName = \"%s\"", ChannelName.c_str()); |
| 2045 | DataLog(Data.data(), Length, " Data: %d bytes", Length); |
| 2046 | COPY_TO_CLIENT(); |
| 2047 | return true; |
| 2048 | } |
| 2049 | |
| 2050 | |
| 2051 |
nothing calls this directly
no test coverage detected