From 80fd782ef78a302f77f5f58e08e32c7a29e2105a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 31 Mar 2013 20:14:20 +0000 Subject: HistoryEvents & HistoryKeeper support removed git-svn-id: http://svn.miranda-ng.org/main/trunk@4269 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/src/proto.cpp | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) (limited to 'protocols/Twitter/src') diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index eca9aea2ff..e1af8a6f83 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -23,7 +23,6 @@ along with this program. If not, see . #include "oauth.dev.h" #include "m_folders.h" -#include "m_historyevents.h" #include #include @@ -382,31 +381,12 @@ int TwitterProto::OnModulesLoaded(WPARAM,LPARAM) gcr.iMaxText = 159; CallService(MS_GC_REGISTER,0,reinterpret_cast(&gcr)); - if (ServiceExists(MS_HISTORYEVENTS_REGISTER)) - { - HISTORY_EVENT_HANDLER heh = {0}; - heh.cbSize = sizeof(heh); - heh.module = m_szModuleName; - heh.name = "tweet"; - heh.description = "Tweet"; - heh.eventType = TWITTER_DB_EVENT_TYPE_TWEET; - heh.defaultIconName = "Twitter_tweet"; - heh.flags = HISTORYEVENTS_FLAG_SHOW_IM_SRMM - | HISTORYEVENTS_FLAG_EXPECT_CONTACT_NAME_BEFORE -// Not sure: | HISTORYEVENTS_FLAG_FLASH_MSG_WINDOW - | HISTORYEVENTS_REGISTERED_IN_ICOLIB; - CallService(MS_HISTORYEVENTS_REGISTER, (WPARAM) &heh, 0); - } - else - { - DBEVENTTYPEDESCR evt = {sizeof(evt)}; - evt.eventType = TWITTER_DB_EVENT_TYPE_TWEET; - evt.module = m_szModuleName; - evt.descr = "Tweet"; - evt.flags = DETF_HISTORY | DETF_MSGWINDOW; - CallService(MS_DB_EVENT_REGISTERTYPE,0,reinterpret_cast(&evt)); - } - + DBEVENTTYPEDESCR evt = {sizeof(evt)}; + evt.eventType = TWITTER_DB_EVENT_TYPE_TWEET; + evt.module = m_szModuleName; + evt.descr = "Tweet"; + evt.flags = DETF_HISTORY | DETF_MSGWINDOW; + CallService(MS_DB_EVENT_REGISTERTYPE,0,reinterpret_cast(&evt)); return 0; } -- cgit v1.2.3