mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01: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:
@@ -47,6 +47,7 @@ EModRet OnUserJoin(CString& sChannel, CString& sKey)
|
||||
EModRet OnUserPart(CString& sChannel, CString& sMessage)
|
||||
EModRet OnUserTopic(CString& sChannel, CString& sTopic)
|
||||
EModRet OnUserTopicRequest(CString& sChannel)
|
||||
void OnUserQuit(CString& sMessage)
|
||||
EModRet OnCTCPReply(CNick& Nick, CString& sMessage)
|
||||
EModRet OnPrivCTCP(CNick& Nick, CString& sMessage)
|
||||
EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage)
|
||||
|
||||
@@ -103,6 +103,7 @@ public:
|
||||
virtual EModRet OnUserPart(CString& sChannel, CString& sMessage) override;
|
||||
virtual EModRet OnUserTopic(CString& sChannel, CString& sTopic) override;
|
||||
virtual EModRet OnUserTopicRequest(CString& sChannel) override;
|
||||
virtual void OnUserQuit(CString& sMessage) override;
|
||||
virtual EModRet OnCTCPReply(CNick& Nick, CString& sMessage) override;
|
||||
virtual EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) override;
|
||||
virtual EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) override;
|
||||
|
||||
@@ -339,6 +339,9 @@ class Module:
|
||||
def OnUserTopicRequest(self, sChannel):
|
||||
pass
|
||||
|
||||
def OnUserQuit(self, sMessage):
|
||||
pass
|
||||
|
||||
def OnCTCPReply(self, Nick, sMessage):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user