From a7e15910e804e742777b7bb54c83c15a22f342fc Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 10 Apr 2014 08:03:40 +0000 Subject: Steam: - own profile updating - avatar support git-svn-id: http://svn.miranda-ng.org/main/trunk@8911 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_thread.cpp | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'protocols/Steam/src/steam_thread.cpp') 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; } -- cgit v1.2.3