Reset timer & return from away when a client does a CTCP ACTION

This commit is contained in:
NuclearW
2014-08-28 13:59:54 -04:00
parent 0908023a63
commit a1579b7ea4

View File

@@ -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; }