From a1579b7ea42c1f4fa80eaea2fadb1ac966384448 Mon Sep 17 00:00:00 2001 From: NuclearW Date: Thu, 28 Aug 2014 13:59:54 -0400 Subject: [PATCH] Reset timer & return from away when a client does a CTCP ACTION --- modules/awaystore.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/awaystore.cpp b/modules/awaystore.cpp index 8a429d4b..272922d6 100644 --- a/modules/awaystore.cpp +++ b/modules/awaystore.cpp @@ -413,6 +413,7 @@ public: return(CONTINUE); } + virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) { Ping(); @@ -422,6 +423,15 @@ public: return(CONTINUE); } + virtual EModRet OnUserAction(CString& sTarget, CString& sMessage) + { + Ping(); + if (m_bIsAway) + Back(); + + return(CONTINUE); + } + time_t GetTimeStamp() const { return(m_iLastSentData); } void Ping() { m_iLastSentData = time(NULL); } time_t GetAwayTime() { return m_iAutoAway; }