summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-06-06 20:44:39 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-06-06 20:44:39 +0000
commit4b9b01c4e23576dc423d36a39ece3adc69e0b1ae (patch)
treedb6011857f4f9853c5960b4f43a1d348f6e66218 /protocols
parent74aabf4bccef1ebe3eace60a9694f44e9a0499ec (diff)
Twitter new LangPack support
git-svn-id: http://svn.miranda-ng.org/main/trunk@342 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Twitter/common.h2
-rw-r--r--protocols/Twitter/main.cpp13
2 files changed, 3 insertions, 12 deletions
diff --git a/protocols/Twitter/common.h b/protocols/Twitter/common.h
index 675d1ec1be..b9fade2a9f 100644
--- a/protocols/Twitter/common.h
+++ b/protocols/Twitter/common.h
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-#define MIRANDA_VER 0x800
+#define MIRANDA_VER 0x0A00
#include <string>
using std::string;
diff --git a/protocols/Twitter/main.cpp b/protocols/Twitter/main.cpp
index 70bf202fc0..a8a188891f 100644
--- a/protocols/Twitter/main.cpp
+++ b/protocols/Twitter/main.cpp
@@ -28,6 +28,7 @@ MD5_INTERFACE md5i;
MM_INTERFACE mmi;
UTF8_INTERFACE utfi;
LIST_INTERFACE li;
+int hLangpack;
CLIST_INTERFACE* pcli;
@@ -65,17 +66,6 @@ DWORD WINAPI DllMain(HINSTANCE hInstance,DWORD,LPVOID)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if(mirandaVersion < PLUGIN_MAKE_VERSION(0,8,0,29))
- {
- MessageBox(0,_T("The Twitter protocol plugin cannot be loaded. ")
- _T("It requires Miranda IM 0.9.4 or later."),_T("Miranda"),
- MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST);
- return NULL;
- }
-
- /*unsigned long mv=_htonl(mirandaVersion);
- memcpy(&AIM_CAP_MIRANDA[8],&mv,sizeof(DWORD));
- memcpy(&AIM_CAP_MIRANDA[12],AIM_OSCAR_VERSION,sizeof(DWORD));*/
return &pluginInfo;
}
@@ -144,6 +134,7 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
mir_getMD5I(&md5i);
mir_getUTFI(&utfi);
mir_getLI(&li);
+ mir_getLP(&pluginInfo);
pcli = reinterpret_cast<CLIST_INTERFACE*>( CallService(
MS_CLIST_RETRIEVE_INTERFACE,0,reinterpret_cast<LPARAM>(g_hInstance)) );