diff options
| author | 2014-03-14 12:50:14 +0100 | |
|---|---|---|
| committer | 2014-03-14 12:50:14 +0100 | |
| commit | dd94ac5e3c6485c294394cc18cbc4228510e7a47 (patch) | |
| tree | e8c300617bd49d4278bbebd5fff89705fc576812 /src/modules/m_permchannels.cpp | |
| parent | Deduplicate and move the *MatchesEveryone() functions to core_xline (diff) | |
| download | inspircd++-dd94ac5e3c6485c294394cc18cbc4228510e7a47.tar.gz inspircd++-dd94ac5e3c6485c294394cc18cbc4228510e7a47.tar.bz2 inspircd++-dd94ac5e3c6485c294394cc18cbc4228510e7a47.zip | |
m_permchannels Remove pointless cleanup ceremony in cull()
Diffstat (limited to 'src/modules/m_permchannels.cpp')
| -rw-r--r-- | src/modules/m_permchannels.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 0c73de7ba..a4fc6bd09 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -174,32 +174,6 @@ public: { } - CullResult cull() - { - /* - * DelMode can't remove the +P mode on empty channels, or it will break - * merging modes with remote servers. Remove the empty channels now as - * we know this is not the case. - */ - chan_hash::iterator iter = ServerInstance->chanlist->begin(); - while (iter != ServerInstance->chanlist->end()) - { - Channel* c = iter->second; - if (c->GetUserCounter() == 0) - { - chan_hash::iterator at = iter; - iter++; - FOREACH_MOD(OnChannelDelete, (c)); - ServerInstance->chanlist->erase(at); - ServerInstance->GlobalCulls.AddItem(c); - } - else - iter++; - } - ServerInstance->Modes->DelMode(&p); - return Module::cull(); - } - void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE { ConfigTag* tag = ServerInstance->Config->ConfValue("permchanneldb"); |
