summaryrefslogtreecommitdiff
path: root/src/core/stdchat
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-15 16:14:00 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-15 16:14:00 +0000
commitc4e3c65e2e850f978516823397b802557ad7ef1a (patch)
tree3595748f3c7d78fcc2c6aafe6319209cd118f563 /src/core/stdchat
parent156c91b93ca6674da6f7021b8579b62d79403f20 (diff)
- basic chat types to support plugin specific data;
- default value changed for SplitterY git-svn-id: http://svn.miranda-ng.org/main/trunk@7667 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdchat')
-rw-r--r--src/core/stdchat/src/chat.h4
-rw-r--r--src/core/stdchat/src/log.cpp3
-rw-r--r--src/core/stdchat/src/main.cpp5
3 files changed, 10 insertions, 2 deletions
diff --git a/src/core/stdchat/src/chat.h b/src/core/stdchat/src/chat.h
index c0221d4f86..81cda11d63 100644
--- a/src/core/stdchat/src/chat.h
+++ b/src/core/stdchat/src/chat.h
@@ -79,6 +79,10 @@ struct TABLIST
TABLIST *next;
};
+struct MODULEINFO : public GCModuleInfoBase {};
+struct SESSION_INFO : public GCSessionInfoBase {};
+struct LOGSTREAMDATA : public GCLogStreamDataBase {};
+
struct GlobalLogSettings : public GlobalLogSettingsBase
{
BOOL TabsEnable;
diff --git a/src/core/stdchat/src/log.cpp b/src/core/stdchat/src/log.cpp
index ce1d10b9f6..1942fe9a3f 100644
--- a/src/core/stdchat/src/log.cpp
+++ b/src/core/stdchat/src/log.cpp
@@ -68,7 +68,8 @@ void Log_StreamInEvent(HWND hwndDlg, LOGINFO* lin, SESSION_INFO *si, BOOL bRedr
HWND hwndRich = GetDlgItem(hwndDlg, IDC_LOG);
- LOGSTREAMDATA streamData = { 0 };
+ LOGSTREAMDATA streamData;
+ ZeroMemory(&streamData, sizeof(streamData));
streamData.hwnd = hwndRich;
streamData.si = si;
streamData.lin = lin;
diff --git a/src/core/stdchat/src/main.cpp b/src/core/stdchat/src/main.cpp
index b169f56595..ffacc93dc9 100644
--- a/src/core/stdchat/src/main.cpp
+++ b/src/core/stdchat/src/main.cpp
@@ -253,11 +253,12 @@ static void OnLoadSettings()
extern "C" __declspec(dllexport) int Load(void)
{
- // set the memory & utf8 managers
mir_getLP(&pluginInfo);
mir_getCLI();
mir_getCI(&g_Settings);
+ pci->cbModuleInfo = sizeof(MODULEINFO);
+ pci->cbSession = sizeof(SESSION_INFO);
pci->OnAddUser = OnAddUser;
pci->OnNewUser = OnNewUser;
pci->OnRemoveUser = OnRemoveUser;
@@ -284,6 +285,8 @@ extern "C" __declspec(dllexport) int Load(void)
g_hMenu = LoadMenu(g_hInst, MAKEINTRESOURCE(IDR_MENU));
AddIcons();
LoadIcons();
+
+ OnLoadSettings();
OptionsInit();
HookEvent(ME_SYSTEM_SHUTDOWN, OnShutdown);