summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-22 18:15:07 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-22 18:15:07 +0300
commit429859059db4093bf95dbe2695e205025dd7b3a7 (patch)
tree1838e0035c5b0bc943ec01572528b7c3b67489e8 /plugins/TabSRMM/src
parentf59a84dc9b6e843da1024f108cba16aa9544b10c (diff)
Channel Manager button went to core
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r--plugins/TabSRMM/src/chat_window.cpp14
-rw-r--r--plugins/TabSRMM/src/msgs.h1
2 files changed, 2 insertions, 13 deletions
diff --git a/plugins/TabSRMM/src/chat_window.cpp b/plugins/TabSRMM/src/chat_window.cpp
index b9e94532df..c44124fda4 100644
--- a/plugins/TabSRMM/src/chat_window.cpp
+++ b/plugins/TabSRMM/src/chat_window.cpp
@@ -1388,7 +1388,6 @@ CChatRoomDlg::CChatRoomDlg(SESSION_INFO *si)
m_btnOk.OnClick = Callback(this, &CChatRoomDlg::onClick_OK);
m_btnFilter.OnClick = Callback(this, &CChatRoomDlg::onClick_Filter);
m_btnNickList.OnClick = Callback(this, &CChatRoomDlg::onClick_ShowNickList);
- m_btnChannelMgr.OnClick = Callback(this, &CChatRoomDlg::onClick_ChanMgr);
m_message.OnChange = Callback(this, &CChatRoomDlg::onChange_Message);
@@ -1602,8 +1601,7 @@ void CChatRoomDlg::onClick_Filter(CCtrlButton *pButton)
}
else m_bFilterEnabled = !m_bFilterEnabled;
- m_btnFilter.SendMsg(BUTTONSETOVERLAYICON,
- (LPARAM)(m_bFilterEnabled ? PluginConfig.g_iconOverlayEnabled : PluginConfig.g_iconOverlayDisabled), 0);
+ m_btnFilter.SendMsg(BUTTONSETOVERLAYICON, (LPARAM)(m_bFilterEnabled ? PluginConfig.g_iconOverlayEnabled : PluginConfig.g_iconOverlayDisabled), 0);
if (m_bFilterEnabled && M.GetByte(CHAT_MODULE, "RightClickFilter", 0) == 0) {
ShowFilterMenu();
@@ -1616,9 +1614,7 @@ void CChatRoomDlg::onClick_Filter(CCtrlButton *pButton)
void CChatRoomDlg::onClick_ShowNickList(CCtrlButton *pButton)
{
- if (!pButton->Enabled())
- return;
- if (m_si->iType == GCW_SERVER)
+ if (!pButton->Enabled() || m_si->iType == GCW_SERVER)
return;
m_bNicklistEnabled = !m_bNicklistEnabled;
@@ -1629,12 +1625,6 @@ void CChatRoomDlg::onClick_ShowNickList(CCtrlButton *pButton)
ScrollToBottom();
}
-void CChatRoomDlg::onClick_ChanMgr(CCtrlButton *pButton)
-{
- if (pButton->Enabled())
- DoEventHook(GC_USER_CHANMGR, nullptr, nullptr, 0);
-}
-
void CChatRoomDlg::onChange_Message(CCtrlEdit*)
{
if (m_pContainer->m_hwndActive == m_hwnd)
diff --git a/plugins/TabSRMM/src/msgs.h b/plugins/TabSRMM/src/msgs.h
index cbd24d1ca3..1bbefadf41 100644
--- a/plugins/TabSRMM/src/msgs.h
+++ b/plugins/TabSRMM/src/msgs.h
@@ -520,7 +520,6 @@ public:
void onClick_OK(CCtrlButton*);
void onClick_Filter(CCtrlButton*);
- void onClick_ChanMgr(CCtrlButton*);
void onClick_ShowNickList(CCtrlButton*);
void onChange_Message(CCtrlEdit*);