diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-07-06 18:31:20 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-07-06 18:31:20 +0000 |
commit | 78bfee6c598fe618fe3de0d03925f11f95d6cdf9 (patch) | |
tree | 183965b797587e187302f0f70d2c0481cf722c94 /protocols | |
parent | 246431d8bb993046bda93a9b30a424cbf3a07ad7 (diff) |
Steam: temporary added max message length
git-svn-id: http://svn.miranda-ng.org/main/trunk@9716 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Steam/src/steam_messages.cpp | 2 | ||||
-rw-r--r-- | protocols/Steam/src/steam_proto.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_messages.cpp b/protocols/Steam/src/steam_messages.cpp index 44feb387ad..5ae78e726c 100644 --- a/protocols/Steam/src/steam_messages.cpp +++ b/protocols/Steam/src/steam_messages.cpp @@ -19,7 +19,7 @@ void CSteamProto::OnMessageSent(const NETLIBHTTPREQUEST *response, void *arg) bool result = false;
- ptrA steamId((char*)arg);
+ ptrA steamId(getStringA(param->hContact, "SteamID"));
if (response != NULL && response->resultCode == HTTP_STATUS_OK)
{
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp index 9c80dbc390..e6a72ca52a 100644 --- a/protocols/Steam/src/steam_proto.cpp +++ b/protocols/Steam/src/steam_proto.cpp @@ -203,6 +203,8 @@ DWORD_PTR __cdecl CSteamProto:: GetCaps(int type, MCONTACT hContact) return (DWORD_PTR)Translate("SteamID");
case PFLAG_UNIQUEIDSETTING:
return (DWORD_PTR)"SteamID";
+ case PFLAG_MAXLENOFMESSAGE:
+ return 180;
default:
return 0;
}
@@ -291,10 +293,8 @@ int __cdecl CSteamProto::SendMsg(MCONTACT hContact, int flags, const char *msg) SendMessageParam *param = (SendMessageParam*)mir_calloc(sizeof(SendMessageParam));
param->hContact = hContact;
- //param->text = mir_utf8encode(msg);
param->hMessage = (HANDLE)hMessage;
- //ForkThread(&CSteamProto::SendMessageThread, param);
ptrA token(getStringA("TokenSecret"));
ptrA umqid(getStringA("UMQID"));
|