diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-25 12:19:46 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-25 12:19:46 +0300 |
commit | b9c42f33daddda6e1984c6c20ade45d2be30a459 (patch) | |
tree | 51fdb09edfefe19c0145fbb7d52508875a11ba51 /plugins/StatusManager | |
parent | 25fd1ebd9a1d167146068ab3556e105ce70f68da (diff) |
damned git
Diffstat (limited to 'plugins/StatusManager')
-rw-r--r-- | plugins/StatusManager/src/main.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/plugins/StatusManager/src/main.cpp b/plugins/StatusManager/src/main.cpp index 9c2396e905..1cbbefba36 100644 --- a/plugins/StatusManager/src/main.cpp +++ b/plugins/StatusManager/src/main.cpp @@ -44,17 +44,12 @@ CMPlugin::CMPlugin() : ///////////////////////////////////////////////////////////////////////////////////////// // interfaces -MUUID Interfaces[2] = {0}; -MUUID miidAutoAway = MIID_AUTOAWAY; +static MUUID Interfaces[2] = { MIID_AUTOAWAY, MIID_LAST }; -MUUID* GetInterfaces(void) +extern "C" __declspec(dllexport) MUUID* MirandaPluginInterfaces(void) { - if (g_AAAEnabled) - Interfaces[0] = miidAutoAway; - return Interfaces; -}; - -extern "C" __declspec(dllexport) MUUID* MirandaInterfaces = GetInterfaces(); + return (g_AAAEnabled) ? Interfaces : nullptr; +} ///////////////////////////////////////////////////////////////////////////////////////// // plugin's entry point |