summaryrefslogtreecommitdiff
path: root/plugins/AvatarHistory/src/AvatarHistory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AvatarHistory/src/AvatarHistory.cpp')
-rw-r--r--plugins/AvatarHistory/src/AvatarHistory.cpp7
1 files changed, 1 insertions, 6 deletions
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;
}