diff options
author | George Hazan <ghazan@miranda.im> | 2022-11-15 13:03:26 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-11-15 13:03:26 +0300 |
commit | 7b52e97b1e21373454e52f8d8ce99442995a4c0b (patch) | |
tree | d00e6bd91acf5e8f80542d4f4e017aed39e84038 | |
parent | c578a1c8bbaf3d3676ed412ac466423b1ddc65d5 (diff) |
fixes #3243 (IRC: выпилить предупреждение о большом числе каналов)
-rw-r--r-- | protocols/IRCG/src/input.cpp | 13 |
1 files 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") {
|