From 7b52e97b1e21373454e52f8d8ce99442995a4c0b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 15 Nov 2022 13:03:26 +0300 Subject: =?UTF-8?q?fixes=20#3243=20(IRC:=20=D0=B2=D1=8B=D0=BF=D0=B8=D0=BB?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20=D0=BF=D1=80=D0=B5=D0=B4=D1=83=D0=BF=D1=80?= =?UTF-8?q?=D0=B5=D0=B6=D0=B4=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=20=D0=B1?= =?UTF-8?q?=D0=BE=D0=BB=D1=8C=D1=88=D0=BE=D0=BC=20=D1=87=D0=B8=D1=81=D0=BB?= =?UTF-8?q?=D0=B5=20=D0=BA=D0=B0=D0=BD=D0=B0=D0=BB=D0=BE=D0=B2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/IRCG/src/input.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/protocols/IRCG/src/input.cpp b/protocols/IRCG/src/input.cpp index cba8115c47..51f856bbf5 100644 --- a/protocols/IRCG/src/input.cpp +++ b/protocols/IRCG/src/input.cpp @@ -475,17 +475,10 @@ BOOL CIrcProto::DoHardcodedCommand(CMStringW text, wchar_t *window, MCONTACT hCo } } SetActiveWindow(m_listDlg->GetHwnd()); - int minutes = (int)m_noOfChannels / 4000; - int minutes2 = (int)m_noOfChannels / 9000; - CMStringW szMsg(FORMAT, TranslateT("This command is not recommended on a network of this size!\r\nIt will probably cause high CPU usage and/or high bandwidth\r\nusage for around %u to %u minute(s).\r\n\r\nDo you want to continue?"), minutes2, minutes); - if (m_noOfChannels < 4000 || (m_noOfChannels >= 4000 && MessageBox(nullptr, szMsg, TranslateT("IRC warning"), MB_YESNO | MB_ICONWARNING | MB_DEFBUTTON2) == IDYES)) { - ListView_DeleteAllItems(GetDlgItem(m_listDlg->GetHwnd(), IDC_INFO_LISTVIEW)); - PostIrcMessage(L"/lusers"); - return false; - } - m_listDlg->m_status.SetText(TranslateT("Aborted")); - return true; + ListView_DeleteAllItems(GetDlgItem(m_listDlg->GetHwnd(), IDC_INFO_LISTVIEW)); + PostIrcMessage(L"/lusers"); + return false; } if (command == L"/me") { -- cgit v1.2.3