From a464482917c94761738949c2b5f6b16e7ab34798 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 10 Jun 2024 13:50:27 +0300 Subject: =?UTF-8?q?fixes=20#4462=20(Discord:=20=D0=BF=D1=80=D0=BE=D1=82?= =?UTF-8?q?=D0=BE=D0=BA=D0=BE=D0=BB=20=D0=BF=D0=B0=D0=B4=D0=B0=D0=B5=D1=82?= =?UTF-8?q?,=20=D0=B5=D1=81=D0=BB=D0=B8=20=D0=B7=D0=B0=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D1=88=D0=B8=D1=82=D1=8C=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=83?= =?UTF-8?q?=20=D0=9C=D0=B8=D1=80=D0=B0=D0=BD=D0=B4=D1=8B,=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B3=D0=B8=D0=BB=D1=8C=D0=B4=D0=B8=D0=B8=20?= =?UTF-8?q?=D0=B5=D1=89=D1=91=20=D0=BD=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B3?= =?UTF-8?q?=D1=80=D1=83=D0=B7=D0=B8=D0=BB=D0=B8=D1=81=D1=8C=20=D0=B4=D0=BE?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=BD=D1=86=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Discord/src/guilds.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/protocols/Discord/src/guilds.cpp b/protocols/Discord/src/guilds.cpp index 35b1cd18fc..b4e25ebe1f 100644 --- a/protocols/Discord/src/guilds.cpp +++ b/protocols/Discord/src/guilds.cpp @@ -70,9 +70,13 @@ void CDiscordProto::BatchChatCreate(void *param) { CDiscordGuild *pGuild = (CDiscordGuild*)param; - for (auto &it : pGuild->arChannels) + for (auto &it : pGuild->arChannels) { + if (m_bTerminated) + break; + if (!it->bIsPrivate && !it->bIsGroup) CreateChat(pGuild, it); + } } void CDiscordProto::CreateChat(CDiscordGuild *pGuild, CDiscordUser *pUser) -- cgit v1.2.3