diff options
Diffstat (limited to 'protocols/IRCG/src')
-rw-r--r-- | protocols/IRCG/src/commandmonitor.cpp | 4 | ||||
-rw-r--r-- | protocols/IRCG/src/main.cpp | 3 | ||||
-rw-r--r-- | protocols/IRCG/src/scripting.cpp | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/protocols/IRCG/src/commandmonitor.cpp b/protocols/IRCG/src/commandmonitor.cpp index 081d6d6e0a..25e0c78060 100644 --- a/protocols/IRCG/src/commandmonitor.cpp +++ b/protocols/IRCG/src/commandmonitor.cpp @@ -96,7 +96,7 @@ VOID CALLBACK OnlineNotifTimerProc3(HWND, UINT, UINT_PTR idEvent, DWORD) CMStringW name = GetWord(ppro->m_channelsToWho, 0);
if (name.IsEmpty()) {
ppro->m_channelsToWho = L"";
- int count = pci->SM_GetCount(ppro->m_szModuleName);
+ int count = g_chatApi.SM_GetCount(ppro->m_szModuleName);
for (int i = 0; i < count; i++) {
GC_INFO gci = { 0 };
gci.Flags = GCF_BYINDEX | GCF_NAME | GCF_TYPE | GCF_COUNT;
@@ -2353,7 +2353,7 @@ bool CIrcProto::DoOnConnect(const CIrcMessage*) }
if (m_rejoinChannels) {
- int count = pci->SM_GetCount(m_szModuleName);
+ int count = g_chatApi.SM_GetCount(m_szModuleName);
for (int i = 0; i < count; i++) {
GC_INFO gci = { 0 };
gci.Flags = GCF_BYINDEX | GCF_DATA | GCF_NAME | GCF_TYPE;
diff --git a/protocols/IRCG/src/main.cpp b/protocols/IRCG/src/main.cpp index d2b9722c68..086cb11dd3 100644 --- a/protocols/IRCG/src/main.cpp +++ b/protocols/IRCG/src/main.cpp @@ -23,7 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "version.h"
CMPlugin g_plugin;
-CHAT_MANAGER *pci;
/////////////////////////////////////////////////////////////////////////////////////////
@@ -67,8 +66,6 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC extern "C" int __declspec(dllexport) Load()
{
- pci = Chat_GetInterface();
-
InitIcons();
InitServers();
InitContactMenus();
diff --git a/protocols/IRCG/src/scripting.cpp b/protocols/IRCG/src/scripting.cpp index 8de2060953..3926b6aefc 100644 --- a/protocols/IRCG/src/scripting.cpp +++ b/protocols/IRCG/src/scripting.cpp @@ -162,7 +162,7 @@ INT_PTR __cdecl CIrcProto::Scripting_GetIrcData(WPARAM, LPARAM lparam) }
else if (sRequest == "channellist") {
CMStringW S = L"";
- int n = pci->SM_GetCount(m_szModuleName);
+ int n = g_chatApi.SM_GetCount(m_szModuleName);
if (n >= 0) {
int j = 0;
while (j < n) {
|