summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-27 14:52:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-27 14:52:20 +0300
commit66ab99eb5b5c47a01e1cc6613af07426abbeb19b (patch)
tree6b3a84cf91b9e383f348355d702e4b38ff1be1e8 /plugins/SendScreenshotPlus/src
parent38d70bf8d8d08cc687263b83ab598279d36a9c56 (diff)
unused variable CHAT_MANAGER *pci removed and replaced with g_chatApi
Diffstat (limited to 'plugins/SendScreenshotPlus/src')
-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);