summaryrefslogtreecommitdiff
path: root/db3x_autobackups/init.c
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-05-22 14:19:24 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-05-22 14:19:24 +0000
commit07604c48d3934e9436da5d0dda427be7375b1c20 (patch)
tree231c85f5816ebaaabd5dca3971c3aa726fa172e8 /db3x_autobackups/init.c
parenta4969ff830e7cde44b95cdb9c9d8c09373f40c32 (diff)
made backward-compatible for pre-0.7 miranda
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@179 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'db3x_autobackups/init.c')
-rw-r--r--db3x_autobackups/init.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/db3x_autobackups/init.c b/db3x_autobackups/init.c
index a282f0c..a515d90 100644
--- a/db3x_autobackups/init.c
+++ b/db3x_autobackups/init.c
@@ -174,7 +174,7 @@ static PLUGININFOEX pluginInfo = {
"Provides Miranda database support: global settings, contacts, history, settings per contact.",
"Miranda-IM project",
"mail@scottellis.com.au",
- "Copyright 2000-2005 Miranda-IM project",
+ "Copyright 2000-2007 Miranda-IM project",
"",
0,
DEFMOD_DB,
@@ -202,6 +202,16 @@ __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
return &pluginInfo;
}
+__declspec(dllexport) PLUGININFO * MirandaPluginInfo(DWORD mirandaVersion)
+{
+ if ( mirandaVersion < PLUGIN_MAKE_VERSION(0,6,0,15)) {
+ MessageBox( NULL, _T("The db3x plugin cannot be loaded. It requires Miranda IM 0.6.0.15 or later."), _T("db3x Plugin"), MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST );
+ return NULL;
+ }
+ pluginInfo.cbSize = sizeof(PLUGININFO);
+ return (PLUGININFO *)&pluginInfo;
+}
+
static const MUUID interfaces[] = {MIID_DATABASE, MIID_LAST};
__declspec(dllexport) const MUUID * MirandaPluginInterfaces(void)
{