diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Twitter/common.h | 2 | ||||
-rw-r--r-- | protocols/Twitter/main.cpp | 13 |
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)) );
|