summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat_main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-11 20:46:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-11 20:46:17 +0300
commit1a23578ffa4dd87cc024f362bd8b2fadfa087e23 (patch)
treeb98bd46ac4c6004d2f6c02615eafd7046e061018 /plugins/TabSRMM/src/chat_main.cpp
parenta81484f320776e7c945e2f74172f979745dd870b (diff)
group chats:
- massive extinction of all remaining GC_* messages; - color chooser completely moved to mir_app; - color buttons' subclass function also moved to mir_app; - all code management transferred to a bunch of virtual functions, members of CChatRoomDlg; - numerous small fixes, like fix for a broken highlight in StdMsg
Diffstat (limited to 'plugins/TabSRMM/src/chat_main.cpp')
-rw-r--r--plugins/TabSRMM/src/chat_main.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/chat_main.cpp b/plugins/TabSRMM/src/chat_main.cpp
index 945ca7e475..5df84402de 100644
--- a/plugins/TabSRMM/src/chat_main.cpp
+++ b/plugins/TabSRMM/src/chat_main.cpp
@@ -37,12 +37,13 @@ pfnDoTrayIcon oldDoTrayIcon;
CHAT_MANAGER *pci;
TMUCSettings g_Settings;
-static void OnCreateSession(SESSION_INFO*, MODULEINFO *mi)
+static void OnCreateSession(SESSION_INFO *si, MODULEINFO *mi)
{
- if (mi) {
+ if (si->pDlg)
+ si->pDlg->UpdateStatusBar();
+
+ if (mi)
mi->idleTimeStamp = time(0);
- pci->SM_BroadcastMessage(mi->pszModule, GC_UPDATESTATUSBAR, 0, 1, TRUE);
- }
}
static void OnReplaceSession(SESSION_INFO *si)
@@ -62,7 +63,7 @@ static void OnSetTopic(SESSION_INFO *si)
static void OnNewUser(SESSION_INFO *si, USERINFO*)
{
if (si->pDlg) {
- SendMessage(si->pDlg->GetHwnd(), GC_UPDATENICKLIST, 0, 0);
+ si->pDlg->UpdateNickList();
if (si->pDlg)
si->pDlg->GetMyNick();
}
@@ -73,7 +74,7 @@ static void OnChangeNick(SESSION_INFO *si)
if (si->pDlg) {
if (si->pDlg)
si->pDlg->GetMyNick();
- SendMessage(si->pDlg->GetHwnd(), GC_UPDATESTATUSBAR, 0, 0);
+ si->pDlg->UpdateStatusBar();
}
}