summaryrefslogtreecommitdiff
path: root/plugins/LangMan
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/LangMan')
-rw-r--r--plugins/LangMan/main.cpp9
-rw-r--r--plugins/LangMan/options.cpp10
-rw-r--r--plugins/LangMan/version.h3
3 files changed, 5 insertions, 17 deletions
diff --git a/plugins/LangMan/main.cpp b/plugins/LangMan/main.cpp
index bcd3dba640..cc023a91fa 100644
--- a/plugins/LangMan/main.cpp
+++ b/plugins/LangMan/main.cpp
@@ -28,19 +28,13 @@ struct MM_INTERFACE mmi;
static HANDLE hHookModulesLoaded;
int hLangpack;
-static char szEmail[100] = PLUGIN_EMAIL;
-
static PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
"Language Pack Manager",
PLUGIN_VERSION,
-#if defined(_DEBUG)
- "Development build not intended for release. ("__DATE__")", /* autotranslated */
-#else
"Helps you manage Language Packs of different languages.", /* autotranslated */
-#endif
"H. Herkenrath",
- szEmail, /* @ will be set later */
+ "hrathh@users.sourceforge.net",
"© 2005-2007 H. Herkenrath",
PLUGIN_WEBSITE,
UNICODE_AWARE,
@@ -98,7 +92,6 @@ extern "C" {
__declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
- szEmail[PLUGIN_EMAIL_ATT_POS-1] = '@';
return &pluginInfo;
}
diff --git a/plugins/LangMan/options.cpp b/plugins/LangMan/options.cpp
index e0646c17fe..a6acdd9aea 100644
--- a/plugins/LangMan/options.cpp
+++ b/plugins/LangMan/options.cpp
@@ -177,8 +177,8 @@ static void DisplayNotIncludedPlugins(HWND hwndListBox, const LANGPACK_INFO *pac
char buf[128];
TCHAR buf2[128];
DWORD mirandaVersion;
- PLUGININFO *pluginInfo;
- PLUGININFO *(__cdecl *MirandaPluginInfo)(DWORD);
+ PLUGININFOEX *pluginInfo;
+ PLUGININFOEX *(__cdecl *MirandaPluginInfo)(DWORD);
/* enum plugins */
if (!(pack->flags&LPF_DEFAULT) && GetModuleFileName(NULL, szDir, SIZEOF(szDir))) {
@@ -215,12 +215,10 @@ static void DisplayNotIncludedPlugins(HWND hwndListBox, const LANGPACK_INFO *pac
if (hModule == NULL) continue;
}
/* plugin info */
- *(PROC*)&MirandaPluginInfo = GetProcAddress(hModule, "MirandaPluginInfo");
- if (MirandaPluginInfo == NULL) /* v0.8 support */
- *(PROC*)&MirandaPluginInfo = GetProcAddress(hModule, "MirandaPluginInfoEx");
+ *(PROC*)&MirandaPluginInfo = GetProcAddress(hModule, "MirandaPluginInfoEx");
if (MirandaPluginInfo!=NULL) { /* both structs have the same header */
pluginInfo = MirandaPluginInfo(mirandaVersion);
- if (pluginInfo!=NULL && pluginInfo->cbSize >= sizeof(PLUGININFO) && pluginInfo->shortName!=NULL) {
+ if (pluginInfo!=NULL && pluginInfo->cbSize >= sizeof(PLUGININFOEX) && pluginInfo->shortName!=NULL) {
lstrcpynA(buf, pluginInfo->shortName, sizeof(buf)); /* buffer safe */
CleanupPluginName(buf);
mir_sntprintf(buf2, SIZEOF(buf2), TranslateT("%hs (%s)"), buf, CharLower(wfd.cFileName));
diff --git a/plugins/LangMan/version.h b/plugins/LangMan/version.h
index 10ebf964ff..296ad97e87 100644
--- a/plugins/LangMan/version.h
+++ b/plugins/LangMan/version.h
@@ -32,9 +32,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define USERAGENT_VERSION "1.0.2.3"
#endif
-#define PLUGIN_EMAIL "hrathh users.sourceforge.net"
-#define PLUGIN_EMAIL_ATT_POS 7 /* position of the @-sign in the email adress above */
-
#if defined(_UNICODE)
#define PLUGIN_WEBSITE "http://addons.miranda-im.org/details.php?action = viewfile&id = 3003"
#else