From 803e7b0b5e7c84a814601141fcb7634516eefa30 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 21 Apr 2018 12:51:54 +0300 Subject: EV_PROTO_DBSETTINGSCHANGED - old useless stub removed --- protocols/IRCG/src/ircproto.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'protocols/IRCG/src') 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; } -- cgit v1.2.3