diff options
author | George Hazan <ghazan@miranda.im> | 2019-09-27 23:43:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-09-27 23:43:06 +0300 |
commit | e441a31e9f912fc8e9244d16560565559b1924d2 (patch) | |
tree | e9d47703f0e56bb5745e7e4e842d14ce989fe86d /protocols/Discord | |
parent | 91811190c158e4ff97cc94ef93415c12ddf738ed (diff) |
end of manual experiments with CList/NotOnList
Diffstat (limited to 'protocols/Discord')
-rw-r--r-- | protocols/Discord/src/proto.cpp | 2 | ||||
-rw-r--r-- | protocols/Discord/src/utils.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp index b9b1dc1810..355ffd9d7a 100644 --- a/protocols/Discord/src/proto.cpp +++ b/protocols/Discord/src/proto.cpp @@ -341,7 +341,7 @@ MCONTACT CDiscordProto::AddToList(int flags, PROTOSEARCHRESULT *psr) MCONTACT hContact = db_add_contact(); Proto_AddToContact(hContact, m_szModuleName); if (flags & PALF_TEMPORARY) - db_set_b(hContact, "CList", "NotOnList", 1); + Contact_RemoveFromList(hContact); *p = 0; CDiscordUser *pUser = new CDiscordUser(0); diff --git a/protocols/Discord/src/utils.cpp b/protocols/Discord/src/utils.cpp index 95a7b098c3..e26317d0f8 100644 --- a/protocols/Discord/src/utils.cpp +++ b/protocols/Discord/src/utils.cpp @@ -228,13 +228,13 @@ void CDiscordProto::ProcessType(CDiscordUser *pUser, const JSONNode &pRoot) { switch (pRoot["type"].as_int()) { case 1: // confirmed - db_unset(pUser->hContact, "CList", "NotOnList"); + Contact_PutOnList(pUser->hContact); delSetting(pUser->hContact, DB_KEY_REQAUTH); delSetting(pUser->hContact, "ApparentMode"); break; case 3: // expecting authorization - db_set_b(pUser->hContact, "CList", "NotOnList", 1); + Contact_RemoveFromList(pUser->hContact); if (!getByte(pUser->hContact, DB_KEY_REQAUTH, 0)) { setByte(pUser->hContact, DB_KEY_REQAUTH, 1); |