summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/fam_01service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IcqOscarJ/fam_01service.cpp')
-rwxr-xr-xprotocols/IcqOscarJ/fam_01service.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/protocols/IcqOscarJ/fam_01service.cpp b/protocols/IcqOscarJ/fam_01service.cpp
index 58860481ca..3b98079716 100755
--- a/protocols/IcqOscarJ/fam_01service.cpp
+++ b/protocols/IcqOscarJ/fam_01service.cpp
@@ -761,11 +761,14 @@ void CIcqProto::setUserInfo()
packDWord(&packet, 0x4D697261); // Miranda Signature
packDWord(&packet, 0x6E64614E);
- WORD ver[4] = { MIRANDA_VERSION_FILEVERSION };
- packWord(&packet, ver[0]);
- packWord(&packet, ver[1]);
- packWord(&packet, ver[2]);
- packWord(&packet, ver[3]);
+ int v[4];
+ char mirver[100];
+ CallService(MS_SYSTEM_GETVERSIONTEXT, SIZEOF(mirver), LPARAM(mirver));
+ sscanf(mirver, "%d.%d.%d.%d", &v[0], &v[1], &v[2], &v[3]);
+ packWord(&packet, v[0]);
+ packWord(&packet, v[1]);
+ packWord(&packet, v[2]);
+ packWord(&packet, v[3]);
//MIM/PackName
if ( bHasPackName ) {