]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/netburst.cpp
Add InspIRCd::GetChans(), remove ChannelCount()
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / netburst.cpp
index aa25fcf680a6cde6e7f0c2bcc6bc86c1d5dbe042..93b4d72f49bec6e427dccf5bb0206979e6d0c33c 100644 (file)
@@ -118,7 +118,8 @@ void TreeSocket::DoBurst(TreeServer* s)
        /* Send users and their oper status */
        this->SendUsers(bs);
 
-       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)
                SyncChannel(i->second, bs);
 
        this->SendXLines();