]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_permchannels.cpp
Increase the size of the matrix for map drawing to 250x250
[user/henk/code/inspircd.git] / src / modules / m_permchannels.cpp
index 304192ca820854f48d48e5622bcaf57410b77039..86e810bc29d3b149da175777e4a8b5df2e61d0d3 100644 (file)
@@ -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;
                        }
                }