summaryrefslogtreecommitdiff
path: root/MySpace/MySpace.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-10 15:47:41 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-07-10 15:47:41 +0000
commit81cb552e5a96b888c48502feadcc514b5d8069d3 (patch)
treedf9ba8521ccfbe195cc3ed020fdc9556a41de8fc /MySpace/MySpace.cpp
parentffa0fa4f142eb6ee5f919a96b10f36363c511b16 (diff)
use undocumented 'buddy message 200' (which official client ignores) for miranda & myspace plugin version info
implement adding a 'sent message' so you can see when you send a zap git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@270 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'MySpace/MySpace.cpp')
-rw-r--r--MySpace/MySpace.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/MySpace/MySpace.cpp b/MySpace/MySpace.cpp
index 921d616..ec43337 100644
--- a/MySpace/MySpace.cpp
+++ b/MySpace/MySpace.cpp
@@ -22,6 +22,8 @@ char MODULE[256];
MM_INTERFACE mmi;
+char mir_ver[256];
+
PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
__PLUGIN_NAME,
@@ -133,6 +135,10 @@ extern "C" __declspec (dllexport) int Load(PLUGINLINK *link) {
CharUpperA(MODULE);
}
+ char temp[256];
+ CallService(MS_SYSTEM_GETVERSIONTEXT, 256, (LPARAM)temp);
+ mir_snprintf(mir_ver, 256, "Miranda IM %s (MySpace %d.%d.%d.%d)", temp, __FILEVERSION_STRING);
+
if(ServiceExists(MS_DB_SETSETTINGRESIDENT)) { // 0.6+
char buff[256];
mir_snprintf(buff, 256, "%s/%s", MODULE, "Status");