summaryrefslogtreecommitdiff
path: root/plugins/StatusManager/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/StatusManager/src/main.cpp')
-rw-r--r--plugins/StatusManager/src/main.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/StatusManager/src/main.cpp b/plugins/StatusManager/src/main.cpp
index 7bf1f1f69a..9c2396e905 100644
--- a/plugins/StatusManager/src/main.cpp
+++ b/plugins/StatusManager/src/main.cpp
@@ -44,14 +44,17 @@ CMPlugin::CMPlugin() :
/////////////////////////////////////////////////////////////////////////////////////////
// interfaces
-static MUUID Interfaces[2] = { MIID_LAST, MIID_LAST };
+MUUID Interfaces[2] = {0};
+MUUID miidAutoAway = MIID_AUTOAWAY;
-extern "C" __declspec(dllexport) MUUID* MirandaPluginInterfaces(void)
+MUUID* GetInterfaces(void)
{
if (g_AAAEnabled)
- Interfaces[0] = MIID_AUTOAWAY;
+ Interfaces[0] = miidAutoAway;
return Interfaces;
-}
+};
+
+extern "C" __declspec(dllexport) MUUID* MirandaInterfaces = GetInterfaces();
/////////////////////////////////////////////////////////////////////////////////////////
// plugin's entry point