summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-09 22:36:24 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-09 22:36:24 +0000
commit5fa0373e4269178d6c53e43b9e2fe7cf6157cfb7 (patch)
tree3c38b1565e5e06bd18d5f9551aa7ca6afa0256cd /plugins/Scriver/src/msgs.cpp
parentf285cbbf373f4ca84d239190d46f3fcdfc339a4d (diff)
same fix for Scriver
git-svn-id: http://svn.miranda-ng.org/main/trunk@9753 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/msgs.cpp')
-rw-r--r--plugins/Scriver/src/msgs.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp
index c416c65989..b2dab1d2c5 100644
--- a/plugins/Scriver/src/msgs.cpp
+++ b/plugins/Scriver/src/msgs.cpp
@@ -441,6 +441,16 @@ static int ModuleLoad(WPARAM wParam, LPARAM lParam)
return 0;
}
+static int MetaContactChanged(WPARAM hMeta, LPARAM)
+{
+ if (hMeta) {
+ HWND hwnd = WindowList_Find(g_dat.hMessageWindowList, hMeta);
+ if (hwnd != NULL)
+ SendMessage(hwnd, DM_GETAVATAR, 0, 0);
+ }
+ return 0;
+}
+
static int OnModulesLoaded(WPARAM wParam, LPARAM lParam)
{
ReloadGlobals();
@@ -462,6 +472,7 @@ static int OnModulesLoaded(WPARAM wParam, LPARAM lParam)
HookEvent(ME_AV_AVATARCHANGED, AvatarChanged);
HookEvent(ME_FONT_RELOAD, FontServiceFontsChanged);
HookEvent(ME_MSG_ICONPRESSED, StatusIconPressed);
+ HookEvent(ME_MC_DEFAULTTCHANGED, MetaContactChanged);
RestoreUnreadMessageAlerts();
Chat_ModulesLoaded(wParam, lParam);
@@ -469,7 +480,7 @@ static int OnModulesLoaded(WPARAM wParam, LPARAM lParam)
return 0;
}
-int OnSystemPreshutdown(WPARAM wParam, LPARAM lParam)
+int OnSystemPreshutdown(WPARAM, LPARAM)
{
WindowList_Broadcast(g_dat.hMessageWindowList, WM_CLOSE, 0, 0);
WindowList_Broadcast(g_dat.hParentWindowList, WM_CLOSE, 0, 0);