summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SendScreenshotPlus')
-rw-r--r--plugins/SendScreenshotPlus/src/CSend.cpp2
-rw-r--r--plugins/SendScreenshotPlus/src/Main.cpp3
2 files changed, 1 insertions, 4 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSend.cpp b/plugins/SendScreenshotPlus/src/CSend.cpp
index 356d3d5fdf..be31a7bfe0 100644
--- a/plugins/SendScreenshotPlus/src/CSend.cpp
+++ b/plugins/SendScreenshotPlus/src/CSend.cpp
@@ -218,7 +218,7 @@ void CSend::svcSendMsgExit(const char* szMessage)
}
int res = GC_RESULT_NOSESSION;
- int cnt = pci->SM_GetCount(m_pszProto);
+ int cnt = g_chatApi.SM_GetCount(m_pszProto);
// loop on all gc session to get the right (save) ptszID for the chatroom from m_hContact
GC_INFO gci = { 0 };
diff --git a/plugins/SendScreenshotPlus/src/Main.cpp b/plugins/SendScreenshotPlus/src/Main.cpp
index b50e5f7ac8..395ff7907d 100644
--- a/plugins/SendScreenshotPlus/src/Main.cpp
+++ b/plugins/SendScreenshotPlus/src/Main.cpp
@@ -31,7 +31,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// Prototypes ///////////////////////////////////////////////////////////////////////////
CMPlugin g_plugin;
-CHAT_MANAGER *pci;
MGLOBAL g_myGlobals;
HNETLIBUSER g_hNetlibUser;
@@ -265,8 +264,6 @@ ATOM g_clsTargetHighlighter = 0;
extern "C" __declspec(dllexport) int Load(void)
{
- pci = Chat_GetInterface();
-
/// hook events
HookEvent(ME_SYSTEM_MODULESLOADED, hook_ModulesLoaded);
HookEvent(ME_SYSTEM_PRESHUTDOWN, hook_SystemPreShutdown);