From e254312f9a660c83081ce2062ab14ba3c3614089 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Sep 2017 14:12:58 +0300 Subject: useless structure GCDEST finally removed --- protocols/IRCG/src/tools.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'protocols/IRCG/src/tools.cpp') diff --git a/protocols/IRCG/src/tools.cpp b/protocols/IRCG/src/tools.cpp index 3efe9a248e..2ae539db46 100644 --- a/protocols/IRCG/src/tools.cpp +++ b/protocols/IRCG/src/tools.cpp @@ -380,7 +380,6 @@ INT_PTR CIrcProto::DoEvent(int iEvent, const wchar_t* pszWindow, const wchar_t* const wchar_t* pszText, const wchar_t* pszStatus, const wchar_t* pszUserInfo, DWORD_PTR dwItemData, bool bAddToLog, bool bIsMe, time_t timestamp) { - GCDEST gcd = { m_szModuleName, NULL, iEvent }; CMStringW sID; CMStringW sText; @@ -390,16 +389,16 @@ INT_PTR CIrcProto::DoEvent(int iEvent, const wchar_t* pszWindow, const wchar_t* if (pszText) sText = DoColorCodes(pszText, FALSE, TRUE); + GCEVENT gce = { m_szModuleName, NULL, iEvent }; if (pszWindow) { if (mir_wstrcmpi(pszWindow, SERVERWINDOW)) sID = pszWindow + (CMStringW)L" - " + m_info.sNetwork; else sID = pszWindow; - gcd.ptszID = (wchar_t*)sID.c_str(); + gce.ptszID = (wchar_t*)sID.c_str(); } - else gcd.ptszID = NULL; + else gce.ptszID = NULL; - GCEVENT gce = { &gcd }; gce.ptszStatus = pszStatus; gce.dwFlags = (bAddToLog) ? GCEF_ADDTOLOG : 0; gce.ptszNick = pszNick; -- cgit v1.2.3