]> 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 f24a908004a5dc4aff18588c3a95df09ae5936f5..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;
                        }
                }
@@ -50,7 +53,7 @@ class ModulePermanentChannels : public Module
 {
        PermChannel *p;
 public:
-       
+
        ModulePermanentChannels(InspIRCd* Me) : Module(Me)
        {
                p = new PermChannel(ServerInstance);
@@ -71,7 +74,7 @@ public:
 
        virtual Version GetVersion()
        {
-               return Version(1,1,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
+               return Version(1,2,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
        }
 
        virtual int OnChannelPreDelete(Channel *c)