diff options
Diffstat (limited to 'yapp/notify_imp.cpp')
-rw-r--r-- | yapp/notify_imp.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/yapp/notify_imp.cpp b/yapp/notify_imp.cpp index 9dc0b2e..89fde14 100644 --- a/yapp/notify_imp.cpp +++ b/yapp/notify_imp.cpp @@ -30,6 +30,12 @@ int Popup2Update(WPARAM wParam, LPARAM lParam) { return 0;
}
+int AvatarChanged(WPARAM wParam, LPARAM lParam) {
+ PostMPMessage(MUM_NMAVATAR, (WPARAM)0, (LPARAM)0);
+ return 0;
+}
+
+
INT_PTR svcPopup2Update(WPARAM wParam, LPARAM lParam) {
return Popup2Update(wParam, lParam);
}
@@ -102,10 +108,12 @@ int NotifyOptionsInitialize(WPARAM wParam,LPARAM lParam) }
HANDLE hEventNotifyOptInit, hEventNotifyModulesLoaded;
+HANDLE hAvChangeEvent;
int NotifyModulesLoaded(WPARAM wParam,LPARAM lParam)
{
hEventNotifyOptInit = HookEvent(ME_NOTIFY_OPT_INITIALISE, NotifyOptionsInitialize);
+ hAvChangeEvent = HookEvent(ME_AV_AVATARCHANGED, AvatarChanged);
return 0;
}
@@ -129,6 +137,7 @@ void DeinitNotify() { UnhookEvent(hhkUpdate);
UnhookEvent(hhkRemove);
+ UnhookEvent(hAvChangeEvent);
UnhookEvent(hEventNotifyOptInit);
UnhookEvent(hEventNotifyModulesLoaded);
|