aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_permchannels.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-03-14 12:56:20 +0100
committerGravatar Attila Molnar2014-03-14 12:56:20 +0100
commit146d85b5dea9ecb803a9a47c68b5489905634125 (patch)
treec8156a5db6cb0afaf5310a59d8c1a7c4ab6de838 /src/modules/m_permchannels.cpp
parentm_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.cpp3
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))