summaryrefslogtreecommitdiff
path: root/protocols/Teams/src/teams_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-03-21 20:29:59 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-03-21 20:29:59 +0300
commitd927f17c1675e93d4cca6a39df83852a17bb4ab2 (patch)
treefc48abbcbdc0458a608f1146128eac6581b12048 /protocols/Teams/src/teams_proto.cpp
parent8d93246be88fdcdef666c229fa0d204b160ba876 (diff)
Teams: options
Diffstat (limited to 'protocols/Teams/src/teams_proto.cpp')
-rw-r--r--protocols/Teams/src/teams_proto.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/protocols/Teams/src/teams_proto.cpp b/protocols/Teams/src/teams_proto.cpp
index 2e6eb83e5c..b96ebd2593 100644
--- a/protocols/Teams/src/teams_proto.cpp
+++ b/protocols/Teams/src/teams_proto.cpp
@@ -1,8 +1,17 @@
#include "stdafx.h"
CTeamsProto::CTeamsProto(const char *protoName, const wchar_t *userName) :
- PROTO<CTeamsProto>(protoName, userName)
+ PROTO<CTeamsProto>(protoName, userName),
+ m_wstrCListGroup(this, "DefaultGroup", L"Teams")
{
+ HookProtoEvent(ME_OPT_INITIALISE, &CTeamsProto::OnOptionsInit);
+
+ // network
+ NETLIBUSER nlu = {};
+ nlu.flags = NUF_OUTGOING | NUF_INCOMING | NUF_HTTPCONNS | NUF_UNICODE;
+ nlu.szDescriptiveName.w = m_tszUserName;
+ nlu.szSettingsModule = m_szModuleName;
+ m_hNetlibUser = Netlib_RegisterUser(&nlu);
}
CTeamsProto::~CTeamsProto()