mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Reset timer & return from away when a client does a CTCP ACTION
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user