summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-12-29 00:01:38 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-12-29 00:01:38 +0300
commita956289416dd69108ce3b26b1a6d7ec8627576f4 (patch)
tree5091031cc121d0c8953c855103e019275314dc4d /protocols/Discord/src/proto.cpp
parentcc050575f27ecc736364749d1c5f47a7e3cdc991 (diff)
login processing completed
Diffstat (limited to 'protocols/Discord/src/proto.cpp')
-rw-r--r--protocols/Discord/src/proto.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp
index c44cab39bc..39ec101779 100644
--- a/protocols/Discord/src/proto.cpp
+++ b/protocols/Discord/src/proto.cpp
@@ -25,7 +25,9 @@ static int compareRequests(const AsyncHttpRequest *p1, const AsyncHttpRequest *p
CDiscordProto::CDiscordProto(const char *proto_name, const wchar_t *username) :
PROTO<CDiscordProto>(proto_name, username),
m_arHttpQueue(10, compareRequests),
- m_evRequestsQueue(CreateEvent(NULL, FALSE, FALSE, NULL))
+ m_evRequestsQueue(CreateEvent(NULL, FALSE, FALSE, NULL)),
+ m_wszDefaultGroup(this, DB_KEY_GROUP, DB_KEYVAL_GROUP),
+ m_wszEmail(this, DB_KEY_EMAIL, L"")
{
// Services
CreateProtoService(PS_GETNAME, &CDiscordProto::GetName);
@@ -34,6 +36,9 @@ CDiscordProto::CDiscordProto(const char *proto_name, const wchar_t *username) :
// Events
HookProtoEvent(ME_OPT_INITIALISE, &CDiscordProto::OnOptionsInit);
+ // Clist
+ Clist_GroupCreate(NULL, m_wszDefaultGroup);
+
// Network initialization
CMStringW descr(FORMAT, TranslateT("%s server connection"), m_tszUserName);