summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-23 23:29:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-23 23:29:25 +0300
commit176e52e14fd0358a7f26ca8d7b0205244dfde2e7 (patch)
tree10da2f8951d20103af0215c38d07ea96ba61c191 /protocols/IRCG/src
parent91b13500b47a51f3a284d9f409b7b8dac167a06d (diff)
no need to initialize pcli variable in each plugin (only in Clist_*)
Diffstat (limited to 'protocols/IRCG/src')
-rw-r--r--protocols/IRCG/src/clist.cpp6
-rw-r--r--protocols/IRCG/src/main.cpp2
2 files changed, 3 insertions, 5 deletions
diff --git a/protocols/IRCG/src/clist.cpp b/protocols/IRCG/src/clist.cpp
index 2c0c9b0860..ff43d197c8 100644
--- a/protocols/IRCG/src/clist.cpp
+++ b/protocols/IRCG/src/clist.cpp
@@ -73,9 +73,9 @@ BOOL CIrcProto::CList_AddDCCChat(const CMStringW& name, const CMStringW& hostmas
cle.szTooltip.w = szNick;
cle.lParam = (LPARAM)pdci;
- if (pcli->pfnGetEvent(hContact, 0))
- pcli->pfnRemoveEvent(hContact, -100);
- pcli->pfnAddEvent(&cle);
+ if (g_CLI.pfnGetEvent(hContact, 0))
+ g_CLI.pfnRemoveEvent(hContact, -100);
+ g_CLI.pfnAddEvent(&cle);
}
return TRUE;
}
diff --git a/protocols/IRCG/src/main.cpp b/protocols/IRCG/src/main.cpp
index e8b9724a67..d2b9722c68 100644
--- a/protocols/IRCG/src/main.cpp
+++ b/protocols/IRCG/src/main.cpp
@@ -24,7 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
CMPlugin g_plugin;
CHAT_MANAGER *pci;
-CLIST_INTERFACE *pcli;
/////////////////////////////////////////////////////////////////////////////////////////
@@ -69,7 +68,6 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC
extern "C" int __declspec(dllexport) Load()
{
pci = Chat_GetInterface();
- pcli = Clist_GetInterface();
InitIcons();
InitServers();