From ddd302fbf549bac9cbd9b6675b145ddf0a802aa7 Mon Sep 17 00:00:00 2001 From: cflakes Date: Sun, 23 Jan 2011 21:12:12 +0000 Subject: [PATCH] clearbuffersonmsg module in znc-extra: removed OnUserJoin and OnClientLogin hooks. This means that those events will no longer clear the buffer and thereby make the module more useful. You can now e.g. use it to get all the benefits of KeepBuffer = true, but still have the buffer cleared whenever you do something (we assume that doing something means you have read all previous messages). git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2272 726aef4b-f618-498e-8847-2d620e286838 --- modules/extra/clearbufferonmsg.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/modules/extra/clearbufferonmsg.cpp b/modules/extra/clearbufferonmsg.cpp index f0248b9e..5ed6be70 100644 --- a/modules/extra/clearbufferonmsg.cpp +++ b/modules/extra/clearbufferonmsg.cpp @@ -51,11 +51,6 @@ public: return CONTINUE; } - virtual EModRet OnUserJoin(CString& sChannel, CString& sKey) { - ClearAllBuffers(); - return CONTINUE; - } - virtual EModRet OnUserPart(CString& sChannel, CString& sMessage) { ClearAllBuffers(); return CONTINUE; @@ -65,12 +60,6 @@ public: ClearAllBuffers(); return CONTINUE; } - - virtual void OnClientLogin() { - ClearAllBuffers(); - } - - // No OnClientDisconnect(), disconnect could be coming from e.g. a timeout }; MODULEDEFS(CClearBufferOnMsgMod, "Clear all channel buffers whenever the user does something")