diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-06-05 07:37:27 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-06-05 07:37:27 +0000 |
commit | 7cdb740b6e7599cb626deb2161aa3ab07b252e51 (patch) | |
tree | aeaf154b2c91e0070d3bf8465dec0673ffd7edb2 /protocols/FacebookRM/src/connection.cpp | |
parent | 894d04d09e39156eb2264fb49f2b24035bb16d09 (diff) |
Facebook: New feature to notify "On this day" posts at login; version bump
Right now it notify at every login, max. last 20 posts. In future I'll probably add more options to limit number of posts and do it only one per day, etc.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14006 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/connection.cpp')
-rw-r--r-- | protocols/FacebookRM/src/connection.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/connection.cpp b/protocols/FacebookRM/src/connection.cpp index 57070cd827..ec68c4c4ad 100644 --- a/protocols/FacebookRM/src/connection.cpp +++ b/protocols/FacebookRM/src/connection.cpp @@ -3,7 +3,7 @@ Facebook plugin for Miranda Instant Messenger _____________________________________________ -Copyright © 2009-11 Michal Zelinka, 2011-15 Robert Pösel +Copyright � 2009-11 Michal Zelinka, 2011-15 Robert P�sel This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -124,6 +124,10 @@ void FacebookProto::ChangeStatus(void*) // Load pages for post status dialog ForkThread(&FacebookProto::ProcessPages, NULL); + // Load on this day posts + if (getByte(FACEBOOK_KEY_EVENT_ON_THIS_DAY_ENABLE, DEFAULT_EVENT_ON_THIS_DAY_ENABLE)) + ForkThread(&FacebookProto::ProcessOnThisDay, NULL); + setDword(FACEBOOK_KEY_LOGON_TS, (DWORD)time(NULL)); ForkThread(&FacebookProto::UpdateLoop, NULL); ForkThread(&FacebookProto::MessageLoop, NULL); |