From ad61413a521ea9cebd849b659653a21c2c33ff8a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 17 Jan 2017 20:57:02 +0300 Subject: Discord: auth support --- protocols/Discord/src/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Discord/src/utils.cpp') diff --git a/protocols/Discord/src/utils.cpp b/protocols/Discord/src/utils.cpp index 4d1747c3f9..15246ce46e 100644 --- a/protocols/Discord/src/utils.cpp +++ b/protocols/Discord/src/utils.cpp @@ -187,13 +187,13 @@ void CDiscordProto::ProcessType(CDiscordUser *pUser, const JSONNode &pRoot) switch (pRoot["type"].as_int()) { case 1: // confirmed db_unset(pUser->hContact, "CList", "NotOnList"); - delSetting(pUser->hContact, "FakeAuth"); + delSetting(pUser->hContact, DB_KEY_REQAUTH); break; case 3: // expecting authorization db_set_b(pUser->hContact, "CList", "NotOnList", 1); - if (!getByte(pUser->hContact, "FakeAuth", 0)) { - setByte(pUser->hContact, "FakeAuth", 1); + if (!getByte(pUser->hContact, DB_KEY_REQAUTH, 0)) { + setByte(pUser->hContact, DB_KEY_REQAUTH, 1); CMStringA szId(FORMAT, "%lld", pUser->id); DB_AUTH_BLOB blob(pUser->hContact, T2Utf(pUser->wszUsername), NULL, NULL, szId, NULL); -- cgit v1.2.3