|
|
@@ -987,7 +987,16 @@ public:
|
|
|
SpBuffer buf;
|
|
|
buf.OpenRead(data, size);
|
|
|
RecvAgentText evt;
|
|
|
+#ifdef RVC_OS_WIN
|
|
|
buf & evt.content;
|
|
|
+#else
|
|
|
+ CSimpleString16Bit content16;
|
|
|
+ buf & content16;
|
|
|
+ CSimpleStringA reqContextA = CSimpleString16Bit2A(content16);
|
|
|
+ CSimpleStringW reqContextW = CSimpleStringA2W(reqContextA);
|
|
|
+ Dbg("RecvAgentText is %s.", reqContextA.GetData());
|
|
|
+ evt.content = reqContextW;
|
|
|
+#endif // RVC_OS_WIN
|
|
|
SpSendBroadcast(GetFunction(), SP_MSG_OF(RecvAgentText), SP_MSG_SIG_OF(RecvAgentText), evt);
|
|
|
SendAnswer(ACM_IM_ANS | sub_type, Error_Succeed);
|
|
|
}
|