summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/ircproto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-21 12:51:54 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-21 12:51:54 +0300
commit803e7b0b5e7c84a814601141fcb7634516eefa30 (patch)
tree20d3716dd44570773f131d7cce92dc3480f8eaed /protocols/IRCG/src/ircproto.cpp
parentca5001026a94f702c4012c5e8d2093ad3f51c1fa (diff)
EV_PROTO_DBSETTINGSCHANGED - old useless stub removed
Diffstat (limited to 'protocols/IRCG/src/ircproto.cpp')
-rw-r--r--protocols/IRCG/src/ircproto.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/IRCG/src/ircproto.cpp b/protocols/IRCG/src/ircproto.cpp
index a5939a76a6..6152e22e88 100644
--- a/protocols/IRCG/src/ircproto.cpp
+++ b/protocols/IRCG/src/ircproto.cpp
@@ -64,6 +64,9 @@ CIrcProto::CIrcProto(const char* szModuleName, const wchar_t* tszUserName) :
CreateProtoService("/InsertGuiOut", &CIrcProto::Scripting_InsertGuiOut);
CreateProtoService("/GetIrcData", &CIrcProto::Scripting_GetIrcData);
+ HookProtoEvent(ME_DB_CONTACT_SETTINGCHANGED, &CIrcProto::OnDbSettingChanged);
+ HookProtoEvent(ME_OPT_INITIALISE, &CIrcProto::OnInitOptionsPages);
+
codepage = CP_ACP;
InitPrefs();
@@ -258,8 +261,7 @@ void CIrcProto::OnModulesLoaded()
InitIgnore();
HookProtoEvent(ME_USERINFO_INITIALISE, &CIrcProto::OnInitUserInfo);
- HookProtoEvent(ME_OPT_INITIALISE, &CIrcProto::OnInitOptionsPages);
-
+
if (m_nick[0]) {
wchar_t szBuf[40];
if (mir_wstrlen(m_alternativeNick) == 0) {
@@ -819,9 +821,6 @@ int CIrcProto::OnEvent(PROTOEVENTTYPE eventType, WPARAM wParam, LPARAM lParam)
case EV_PROTO_ONCONTACTDELETED:
return OnContactDeleted(wParam, lParam);
-
- case EV_PROTO_DBSETTINGSCHANGED:
- return OnDbSettingChanged(wParam, lParam);
}
return 1;
}