diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_permchannels.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 304192ca8..86e810bc2 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -38,6 +38,9 @@ class PermChannel : public ModeHandler if (channel->IsModeSet('P')) { channel->SetMode('P',false); + + if (channel->GetUserCounter() == 0) + delete channel; return MODEACTION_ALLOW; } } |