From 4f8af6b68a0e04da0aa071d829d71c3068d71717 Mon Sep 17 00:00:00 2001 From: imaginos Date: Sun, 15 May 2005 04:46:48 +0000 Subject: [PATCH] when i part, save to file before the chan gets haxed. same with quit git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@303 726aef4b-f618-498e-8847-2d620e286838 --- modules/savebuff.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/savebuff.cpp b/modules/savebuff.cpp index 6f134290..ac73c34d 100644 --- a/modules/savebuff.cpp +++ b/modules/savebuff.cpp @@ -26,6 +26,9 @@ * better solution then plain text. * * $Log$ + * Revision 1.23 2005/05/15 04:46:48 imaginos + * when i part, save to file before the chan gets haxed. same with quit + * * Revision 1.22 2005/05/15 04:40:58 imaginos * onjoin, when its me and the buffer is empty, reload any older buffer for fun * @@ -332,6 +335,8 @@ public: continue; vChans[a]->AddBuffer( SpoofChanMsg( vChans[a]->GetName(), cNick.GetNickMask() + " QUIT " + sMessage ) ); } + if ( cNick.GetNick().CaseCmp( m_pUser->GetNick() ) == 0 ) + SaveBufferToDisk(); // need to force a save here to see this! } virtual void OnNick(const CNick& cNick, const CString& sNewNick, const vector& vChans) @@ -366,6 +371,8 @@ public: if ( !cChannel.KeepBuffer() ) return; ((CChan &)cChannel).AddBuffer( SpoofChanMsg( cChannel.GetName(), cNick.GetNickMask() + " PART" ) ); + if ( cNick.GetNick().CaseCmp( m_pUser->GetNick() ) == 0 ) + SaveBufferToDisk(); // need to force a save here to see this! } private: