clearbufferonmsg: Skip detached chans

Since the user can't read detached channels, there is no point in clearing their
buffer. Let's leave them alone instead.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2151 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-09-28 08:10:43 +00:00
parent c11b00c192
commit 8e7ac59d25

View File

@@ -19,6 +19,10 @@ public:
vector<CChan*>::const_iterator it;
for (it = vChans.begin(); it != vChans.end(); ++it) {
// Skip detached channels, they weren't read yet
if ((*it)->IsDetached())
continue;
(*it)->ClearBuffer();
// We force KeepBuffer on all channels since this module
// doesnt make any sense without