From 1fb0cd07fba1e8d6f9ac2ebe3b4f2e1c60acb81b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 27 Feb 2014 21:51:46 +0000 Subject: - metacontacts are always present; - added META_PROTO constant for mc module name; - MS_MC_GETPROTOCOLNAME removed, because it always returns META_PROTO git-svn-id: http://svn.miranda-ng.org/main/trunk@8319 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AvatarHistory/src/AvatarHistory.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'plugins/AvatarHistory') diff --git a/plugins/AvatarHistory/src/AvatarHistory.cpp b/plugins/AvatarHistory/src/AvatarHistory.cpp index ae493d33ad..b9d5428e65 100644 --- a/plugins/AvatarHistory/src/AvatarHistory.cpp +++ b/plugins/AvatarHistory/src/AvatarHistory.cpp @@ -29,8 +29,6 @@ DWORD mirVer; HANDLE hFolder = NULL; -char *metacontacts_proto = NULL; - TCHAR profilePath[MAX_PATH]; // database profile path (read at startup only) TCHAR basedir[MAX_PATH]; int hLangpack = 0; @@ -112,7 +110,7 @@ static int AvatarChanged(WPARAM hContact, LPARAM lParam) if (proto == NULL) return 0; - if (metacontacts_proto != NULL && strcmp(metacontacts_proto, proto) == 0) + if (strcmp(META_PROTO, proto) == 0) return 0; DBVARIANT dbvOldHash = {0}; @@ -242,9 +240,6 @@ static int ModulesLoaded(WPARAM wParam, LPARAM lParam) InitPopups(); - if (ServiceExists(MS_MC_GETPROTOCOLNAME)) - metacontacts_proto = (char *) CallService(MS_MC_GETPROTOCOLNAME, 0, 0); - HookEvent(ME_AV_CONTACTAVATARCHANGED, AvatarChanged); return 0; } -- cgit v1.2.3