diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-12-19 21:24:11 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-12-19 21:24:11 +0000 |
commit | 925c04de5ee370511fe1c09d42ba8c4589c7d2ee (patch) | |
tree | b48de2c2498b01f5195d5016f6e47f91141d71ab /protocols/Steam/src/steam_events.cpp | |
parent | a313a57561b0a4ab336f031f4ccd433d659bb7fb (diff) |
Steam: Support for receiving "user left conversation" events (like jabber has)
Miranda is NOT sending this event, maybe in future if there is exists such request from mobile/web steam.
git-svn-id: http://svn.miranda-ng.org/main/trunk@15903 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_events.cpp')
-rw-r--r-- | protocols/Steam/src/steam_events.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_events.cpp b/protocols/Steam/src/steam_events.cpp index 69dc630b86..1a7bdbc9a4 100644 --- a/protocols/Steam/src/steam_events.cpp +++ b/protocols/Steam/src/steam_events.cpp @@ -6,6 +6,14 @@ int CSteamProto::OnModulesLoaded(WPARAM, LPARAM) HookProtoEvent(ME_IDLE_CHANGED, &CSteamProto::OnIdleChanged); HookEvent(ME_CLIST_PREBUILDCONTACTMENU, &CSteamProto::PrebuildContactMenu); + + // Register custom db event + DBEVENTTYPEDESCR dbEventType = { sizeof(dbEventType) }; + dbEventType.module = m_szModuleName; + dbEventType.eventType = EVENTTYPE_STEAM_CHATSTATES; + dbEventType.descr = "Chat state notifications"; + CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType); + return 0; } |