summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-04-04 17:12:36 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-04-04 17:12:36 +0300
commitf5a06e8c7677cb29b100314d17b5931f85c3d33f (patch)
tree8ee401be5558d7f6e5148fed2adb8a79dcb9592a /include
parentcb9750e8ef71c32441c34c169101c4329a9ac8b5 (diff)
- GC_FONTSIZE considered useless;
- archaic linked list of modules replaced with the standard LIST<> which is much faster - fix for the module destruction
Diffstat (limited to 'include')
-rw-r--r--include/m_chat.h1
-rw-r--r--include/m_chat_int.h25
2 files changed, 11 insertions, 15 deletions
diff --git a/include/m_chat.h b/include/m_chat.h
index c241b7675c..6fe8aad0ca 100644
--- a/include/m_chat.h
+++ b/include/m_chat.h
@@ -133,7 +133,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define GC_ACKMSG 0x0020 // the protocol must acknowlege messages sent
#define GC_TYPNOTIF 0x0040 // enable typing notifications.
#define GC_CHANMGR 0x0080 // enable the 'channel settings' button
-#define GC_FONTSIZE 0x0200 // enable font size selection
// Error messages
#define GC_ERROR 1 // An internal error occurred.
diff --git a/include/m_chat_int.h b/include/m_chat_int.h
index 4871a636bd..c57491af82 100644
--- a/include/m_chat_int.h
+++ b/include/m_chat_int.h
@@ -81,21 +81,17 @@ class CChatRoomDlg;
struct GCModuleInfoBase
{
- char* pszModule;
- wchar_t* ptszModDispName;
- char* pszHeader;
- bool bBold;
- bool bUnderline;
- bool bItalics;
- bool bColor;
- bool bBkgColor;
- bool bChanMgr;
- bool bAckMsg;
- bool bFontSize;
- int nColorCount;
- COLORREF* crColors;
+ char *pszModule;
+ wchar_t *ptszModDispName;
+ char *pszHeader;
+
+ bool bBold, bItalics, bUnderline;
+ bool bColor, bBkgColor;
+ bool bChanMgr, bAckMsg;
+
int iMaxText;
- MODULEINFO* next;
+ int nColorCount;
+ COLORREF *crColors;
};
struct COMMANDINFO
@@ -339,6 +335,7 @@ struct CHAT_MANAGER
// user-defined custom callbacks
void (*OnCreateModule)(MODULEINFO*);
+ void (*OnDestroyModule)(MODULEINFO*);
void (*OnCreateSession)(SESSION_INFO*, MODULEINFO*);
void (*OnOfflineSession)(SESSION_INFO*);