mirror of
https://github.com/znc/znc.git
synced 2026-08-10 02:43:05 +02:00
Add OnUserQuit() for extending clearbufferonmsg
Add OnUserQuit() callback. On smartphone, user doesn't want to see same lines repeatedly. But, meanwhile, user doesn't want to miss lines when connection was lost. To do it, this uses OnUserQuit() callback. With this callback, clearbufferonmsg can clear buffer if user quited client explicitly. And when connection was lost, buffer is still not cleared.
This commit is contained in:
@@ -720,6 +720,10 @@ public:
|
||||
* @return See CModule::EModRet.
|
||||
*/
|
||||
virtual EModRet OnUserTopicRequest(CString& sChannel);
|
||||
/** This module hook is called when a user requests to quit from network.
|
||||
* @param sMessage The quit message the client sent.
|
||||
*/
|
||||
virtual void OnUserQuit(CString& sMessage);
|
||||
|
||||
/** Called when we receive a CTCP reply <em>from IRC</em>.
|
||||
* @param Nick The nick the CTCP reply is from.
|
||||
@@ -1190,6 +1194,7 @@ public:
|
||||
bool OnUserPart(CString& sChannel, CString& sMessage);
|
||||
bool OnUserTopic(CString& sChannel, CString& sTopic);
|
||||
bool OnUserTopicRequest(CString& sChannel);
|
||||
bool OnUserQuit(CString& sMessage);
|
||||
|
||||
bool OnCTCPReply(CNick& Nick, CString& sMessage);
|
||||
bool OnPrivCTCP(CNick& Nick, CString& sMessage);
|
||||
|
||||
Reference in New Issue
Block a user