summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-12-12 08:21:26 +0000
committerRobert Pösel <robyer@seznam.cz>2015-12-12 08:21:26 +0000
commitb0b34d3e9627301f77a6e225dc04465dae998d95 (patch)
treebfb53dc39018137608faca059cfb7d381acb7fdd /protocols/FacebookRM/src/proto.h
parent09a54576390417d41ae37b574047466b260cfd72 (diff)
Facebook: Support for "away" status (behaves just like being idle in Miranda); version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@15842 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.h')
-rw-r--r--protocols/FacebookRM/src/proto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/proto.h b/protocols/FacebookRM/src/proto.h
index 9e4dafbab5..8ea23916cf 100644
--- a/protocols/FacebookRM/src/proto.h
+++ b/protocols/FacebookRM/src/proto.h
@@ -53,6 +53,9 @@ public:
inline int IdleSeconds()
{
+ if (m_iStatus == ID_STATUS_AWAY && m_awayTS)
+ return time(0) - m_awayTS;
+
return m_idleTS ? time(0) - m_idleTS : 0;
}
@@ -60,6 +63,7 @@ public:
bool m_enableChat;
bool m_signingOut;
time_t m_idleTS;
+ time_t m_awayTS;
time_t m_pingTS;
std::string m_locale;