diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-17 20:57:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-17 20:57:02 +0300 |
commit | ad61413a521ea9cebd849b659653a21c2c33ff8a (patch) | |
tree | 9029a623fbbe1491f86a68cbaa92b6b45c786521 /protocols/Discord/src/utils.cpp | |
parent | b327ed7872ca83c3a4249039ba1a3d8dd3ece630 (diff) |
Discord: auth support
Diffstat (limited to 'protocols/Discord/src/utils.cpp')
-rw-r--r-- | protocols/Discord/src/utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |