summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/proto.h')
-rw-r--r--protocols/FacebookRM/src/proto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/proto.h b/protocols/FacebookRM/src/proto.h
index 28ee25429c..fec92279d2 100644
--- a/protocols/FacebookRM/src/proto.h
+++ b/protocols/FacebookRM/src/proto.h
@@ -51,9 +51,15 @@ public:
//return (m_iStatus == ID_STATUS_INVISIBLE);
}
+ inline int IdleSeconds()
+ {
+ return m_idleTS ? time(0) - m_idleTS : 0;
+ }
+
bool m_invisible;
bool m_enableChat;
bool m_signingOut;
+ time_t m_idleTS;
std::string m_locale;
// DB utils missing in proto_interface