summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/NewsAggregator/Src/Services.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/protocols/NewsAggregator/Src/Services.cpp b/protocols/NewsAggregator/Src/Services.cpp
index b057f515be..72f666fa98 100644
--- a/protocols/NewsAggregator/Src/Services.cpp
+++ b/protocols/NewsAggregator/Src/Services.cpp
@@ -22,16 +22,6 @@ Boston, MA 02111-1307, USA.
int g_nStatus = ID_STATUS_OFFLINE;
UINT_PTR timerId = 0;
-HANDLE hOpenMessageWindow = NULL;
-
-int OnMessageWindowOpen(WPARAM,LPARAM lParam)
-{
- MessageWindowEventData *hWindowEvent = (MessageWindowEventData*) lParam;
- if (hWindowEvent->uType == MSG_WINDOW_EVT_OPENING && IsMyContact(hWindowEvent->hContact))
- CheckCurrentFeed(hWindowEvent->hContact);
- return 0;
-}
-
void SetContactStatus(HANDLE hContact,int nNewStatus)
{
if(DBGetContactSettingWord(hContact,MODULE,"Status",ID_STATUS_OFFLINE) != nNewStatus)
@@ -68,8 +58,6 @@ int NewsAggrInit(WPARAM wParam,LPARAM lParam)
InitIcons();
InitMenu();
- hOpenMessageWindow = HookEvent(ME_MSG_WINDOWEVENT,OnMessageWindowOpen);
-
// timer for the first update
timerId = SetTimer(NULL, 0, 5000, timerProc2); // first update is 5 sec after load
@@ -88,8 +76,6 @@ int NewsAggrPreShutdown(WPARAM wParam,LPARAM lParam)
KillTimer(NULL, timerId);
NetlibUnInit();
- if(hOpenMessageWindow) UnhookEvent(hOpenMessageWindow);
-
return 0;
}