@@ -1346,7 +1346,7 @@ CString str = strText;
1346
1346
1347
1347
SendPacket (str, str.GetLength ());
1348
1348
1349
- }
1349
+ } // end of CMUSHclientDoc::DoSendMsg
1350
1350
1351
1351
void CMUSHclientDoc::ReceiveMsg ()
1352
1352
{
@@ -1846,7 +1846,7 @@ void CMUSHclientDoc::SetNewLineColour (const int flags)
1846
1846
1847
1847
} // end of CMUSHclientDoc::SetNewLineColour
1848
1848
1849
- void CMUSHclientDoc::DisplayMsg (LPCTSTR lpszText, int size, const int flags)
1849
+ void CMUSHclientDoc::DisplayMsg (LPCTSTR lpszText, int size, const int flags, const bool fake )
1850
1850
{
1851
1851
const char * p ;
1852
1852
unsigned char c;
@@ -1874,13 +1874,15 @@ CString strLine (lpszText, size);
1874
1874
Debug_MUD (" ++Received from MUD: " , strLine);
1875
1875
#endif
1876
1876
1877
- // hex debug (debug packets)
1878
- if (m_bDebugIncomingPackets)
1877
+ // hex debug (debug packets) - unless we have faked an input line from MXP processing or similar
1878
+ if (m_bDebugIncomingPackets && !fake )
1879
1879
Debug_Packets (" Incoming" , lpszText, size, m_iInputPacketCount);
1880
1880
1881
1881
m_iCurrentActionSource = eInputFromServer;
1882
1882
1883
- SendToAllPluginCallbacksRtn (ON_PLUGIN_PACKET_RECEIVED, strLine);
1883
+ // let plugin change the input packet unless we have faked an input line from MXP processing or similar
1884
+ if (!fake)
1885
+ SendToAllPluginCallbacksRtn (ON_PLUGIN_PACKET_RECEIVED, strLine);
1884
1886
1885
1887
m_iCurrentActionSource = eUnknownActionSource;
1886
1888
0 commit comments