From e441a31e9f912fc8e9244d16560565559b1924d2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Sep 2019 23:43:06 +0300 Subject: end of manual experiments with CList/NotOnList --- protocols/Steam/src/stdafx.h | 1 + protocols/Steam/src/steam_contacts.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'protocols/Steam/src') diff --git a/protocols/Steam/src/stdafx.h b/protocols/Steam/src/stdafx.h index 0783ee01e4..a3ce6ef4b7 100644 --- a/protocols/Steam/src/stdafx.h +++ b/protocols/Steam/src/stdafx.h @@ -12,6 +12,7 @@ #include #include +#include #include #include #include diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp index 8eeb7c6eb3..d60f15a0d1 100644 --- a/protocols/Steam/src/steam_contacts.cpp +++ b/protocols/Steam/src/steam_contacts.cpp @@ -245,7 +245,7 @@ void CSteamProto::ContactIsFriend(MCONTACT hContact) delSetting(hContact, "AuthAsked"); delSetting(hContact, "Auth"); delSetting(hContact, "Grant"); - db_unset(hContact, "CList", "NotOnList"); + Contact_PutOnList(hContact); // Check if this contact was removed someday and if so, notify he's back if (getDword(hContact, "DeletedTS", 0) && !getByte(hContact, "Auth", 0)) { @@ -347,7 +347,7 @@ MCONTACT CSteamProto::AddContact(const char *steamId, const wchar_t *nick, bool if (isTemporary) { debugLogA("Contact %d added as a temporary one"); - db_set_b(hContact, "CList", "NotOnList", 1); + Contact_RemoveFromList(hContact); } setByte(hContact, "Auth", 1); -- cgit v1.2.3