diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-04-10 08:03:40 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-04-10 08:03:40 +0000 |
commit | a7e15910e804e742777b7bb54c83c15a22f342fc (patch) | |
tree | cc96a0fdd893a7d12e7015c4fbde25a4799cc1ac /protocols/Steam/src/steam_thread.cpp | |
parent | 69a49660c02bfdbc306e1b22085f8457d680a36a (diff) |
Steam:
- own profile updating
- avatar support
git-svn-id: http://svn.miranda-ng.org/main/trunk@8911 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_thread.cpp')
-rw-r--r-- | protocols/Steam/src/steam_thread.cpp | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/protocols/Steam/src/steam_thread.cpp b/protocols/Steam/src/steam_thread.cpp index a4adad5ba8..75c60577fd 100644 --- a/protocols/Steam/src/steam_thread.cpp +++ b/protocols/Steam/src/steam_thread.cpp @@ -8,7 +8,7 @@ void CSteamProto::PollStatus(const char *token, const char *sessionId, UINT32 me return;
CMStringA updatedIds;
- for (int i = 0; i < pollResult->GetItemCount(); i++)
+ for (size_t i = 0; i < pollResult->GetItemCount(); i++)
{
const SteamWebApi::PollApi::PoolItem *item = pollResult->GetAt(i);
switch (item->GetType())
@@ -66,30 +66,19 @@ void CSteamProto::PollStatus(const char *token, const char *sessionId, UINT32 me const wchar_t *nickname = state->GetNickname();
if (IsMe(steamId))
- {
- const wchar_t *oldNickname = getWStringA("Nick");
- if (lstrcmp(oldNickname, nickname) && lstrlen(nickname))
- setWString("Nick", nickname);
-
SetStatus(status);
- }
else
{
MCONTACT hContact = FindContact(steamId);
if (hContact)
- {
- const wchar_t *oldNickname = getWStringA(hContact, "Nick");
- if (lstrcmp(oldNickname, nickname) && lstrlen(nickname))
- setWString(hContact, "Nick", nickname);
-
SetContactStatus(hContact, status);
- }
- if (updatedIds.IsEmpty())
- updatedIds.Append(steamId);
- else
- updatedIds.AppendFormat(",%s", steamId);
}
+
+ if (updatedIds.IsEmpty())
+ updatedIds.Append(steamId);
+ else
+ updatedIds.AppendFormat(",%s", steamId);
}
break;
}
|