mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user