diff options
Diffstat (limited to 'plugins/ClientChangeNotify/src/ClientChangeNotify.cpp')
-rw-r--r-- | plugins/ClientChangeNotify/src/ClientChangeNotify.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/ClientChangeNotify/src/ClientChangeNotify.cpp b/plugins/ClientChangeNotify/src/ClientChangeNotify.cpp index eb4c8d6abe..1e80c5b4d1 100644 --- a/plugins/ClientChangeNotify/src/ClientChangeNotify.cpp +++ b/plugins/ClientChangeNotify/src/ClientChangeNotify.cpp @@ -178,15 +178,17 @@ int ContactSettingChanged(WPARAM hContact, LPARAM lParam) return 0;
SHOWPOPUP_DATA sd = { 0 };
- char *szProto = GetContactProto(hContact);
- if (g_PreviewOptPage)
- sd.MirVer = L"Miranda NG ICQ 0.93.5.3007";
+ if (g_PreviewOptPage) {
+ char szVersion[200];
+ Miranda_GetVersionText(szVersion, _countof(szVersion));
+ sd.MirVer = _A2T(szVersion);
+ }
else {
if (!hContact) // exit if hContact == NULL and it's not a popup preview
return 0;
- _ASSERT(szProto);
- if (!strcmp(szProto, META_PROTO)) // workaround for metacontacts
+ char *szProto = GetContactProto(hContact);
+ if (!mir_strcmp(szProto, META_PROTO)) // workaround for metacontacts
return 0;
sd.MirVer = db_get_s(hContact, szProto, DB_MIRVER, L"");
|