diff options
author | George Hazan <ghazan@miranda.im> | 2018-09-04 17:19:57 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-09-04 17:19:57 +0300 |
commit | bdf0fb1cf6a6d2e3c09e1a236b66ac5b19369efe (patch) | |
tree | b8e3c6805e3c98e07c2fb3b0328b95a4b966a180 /protocols/Steam | |
parent | a7a9d28404076eaa5aa13abedcc94bfb03e18e22 (diff) |
related to #1352 - more logs generated
Diffstat (limited to 'protocols/Steam')
-rw-r--r-- | protocols/Steam/src/steam_contacts.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp index 6bdae22900..ea8ca5cfd8 100644 --- a/protocols/Steam/src/steam_contacts.cpp +++ b/protocols/Steam/src/steam_contacts.cpp @@ -256,6 +256,7 @@ void CSteamProto::UpdateContactDetails(MCONTACT hContact, const JSONNode &data) void CSteamProto::ContactIsFriend(MCONTACT hContact) { + debugLogA("Contact %d added to a friends list"); delSetting(hContact, "AuthAsked"); delSetting(hContact, "Auth"); delSetting(hContact, "Grant"); @@ -265,10 +266,8 @@ void CSteamProto::ContactIsFriend(MCONTACT hContact) if (getDword(hContact, "DeletedTS", 0) && !getByte(hContact, "Auth", 0)) { delSetting(hContact, "DeletedTS"); - ptrW nick(getWStringA(hContact, "Nick")); wchar_t message[MAX_PATH]; - mir_snwprintf(message, MAX_PATH, TranslateT("%s is back in your contact list"), nick); - + mir_snwprintf(message, MAX_PATH, TranslateT("%s is back in your contact list"), Clist_GetContactDisplayName(hContact)); ShowNotification(message); } } @@ -364,8 +363,10 @@ MCONTACT CSteamProto::AddContact(const char *steamId, const wchar_t *nick, bool // update info //UpdateContact(hContact, contact); - if (isTemporary) + if (isTemporary) { + debugLogA("Contact %d added as a temporary one"); db_set_b(hContact, "CList", "NotOnList", 1); + } setByte(hContact, "Auth", 1); //setByte(hContact, "Grant", 1); |