diff options
| author | 2014-03-14 12:56:20 +0100 | |
|---|---|---|
| committer | 2014-03-14 12:56:20 +0100 | |
| commit | 146d85b5dea9ecb803a9a47c68b5489905634125 (patch) | |
| tree | c8156a5db6cb0afaf5310a59d8c1a7c4ab6de838 /src/modules/m_permchannels.cpp | |
| parent | m_permchannels Remove pointless cleanup ceremony in cull() (diff) | |
Add InspIRCd::GetChans(), remove ChannelCount()
Diffstat (limited to 'src/modules/m_permchannels.cpp')
| -rw-r--r-- | src/modules/m_permchannels.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index a4fc6bd09..d23af04bc 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -74,7 +74,8 @@ static bool WriteDatabase(PermChannel& permchanmode, Module* mod, bool save_list stream << "# This file is automatically generated by m_permchannels. Any changes will be overwritten." << std::endl << "<config format=\"xml\">" << std::endl; - for (chan_hash::const_iterator i = ServerInstance->chanlist->begin(); i != ServerInstance->chanlist->end(); i++) + const chan_hash& chans = ServerInstance->GetChans(); + for (chan_hash::const_iterator i = chans.begin(); i != chans.end(); ++i) { Channel* chan = i->second; if (!chan->IsModeSet(permchanmode)) |
