if (channel->IsModeSet('P'))
{
channel->SetMode('P',false);
+
+ if (channel->GetUserCounter() == 0)
+ delete channel;
return MODEACTION_ALLOW;
}
}
{
PermChannel *p;
public:
-
+
ModulePermanentChannels(InspIRCd* Me) : Module(Me)
{
p = new PermChannel(ServerInstance);
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)