From fbf7ea850b236609396c59636926d74db1278d8d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 12 Dec 2023 20:03:12 +0300 Subject: =?UTF-8?q?fixes=20#4044=20(IRC:=20=D0=BE=D0=BA=D0=BD=D0=BE=20?= =?UTF-8?q?=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B5=D0=BA=20=D0=BA=D0=B0?= =?UTF-8?q?=D0=BD=D0=B0=D0=BB=D0=B0=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D1=91?= =?UTF-8?q?=D1=82=D1=81=D1=8F=20=D0=BD=D0=B0=20=D0=B7=D0=B0=D0=B4=D0=BD?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=BF=D0=BB=D0=B0=D0=BD=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/IRCG/src/input.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/protocols/IRCG/src/input.cpp b/protocols/IRCG/src/input.cpp index f5a5499348..2fd51e9fd1 100644 --- a/protocols/IRCG/src/input.cpp +++ b/protocols/IRCG/src/input.cpp @@ -421,17 +421,19 @@ BOOL CIrcProto::DoHardcodedCommand(CMStringW text, wchar_t *window, MCONTACT hCo } if (command == L"/channelmanager") { - if (window && !hContact && IsChannel(window)) { - if (IsConnected()) { - if (m_managerDlg != nullptr) { - SetActiveWindow(m_managerDlg->GetHwnd()); - m_managerDlg->Close(); - } - else { - m_managerDlg = new CManagerDlg(this); - m_managerDlg->Show(); - m_managerDlg->InitManager(1, window); - } + if (window && !hContact && IsChannel(window) && IsConnected()) { + if (m_managerDlg != nullptr) { + SetActiveWindow(m_managerDlg->GetHwnd()); + m_managerDlg->Close(); + } + else { + m_managerDlg = new CManagerDlg(this); + if (auto *si = Chat_Find(window, m_szModuleName)) + if (si->pDlg) + m_managerDlg->SetParent(si->pDlg->GetHwnd()); + + m_managerDlg->Show(); + m_managerDlg->InitManager(1, window); } } -- cgit v1.2.3