summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-03-14 12:56:20 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-03-14 12:56:20 +0100
commit146d85b5dea9ecb803a9a47c68b5489905634125 (patch)
treec8156a5db6cb0afaf5310a59d8c1a7c4ab6de838 /src/modules/m_spanningtree
parentdd94ac5e3c6485c294394cc18cbc4228510e7a47 (diff)
Add InspIRCd::GetChans(), remove ChannelCount()
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/netburst.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp
index aa25fcf68..93b4d72f4 100644
--- a/src/modules/m_spanningtree/netburst.cpp
+++ b/src/modules/m_spanningtree/netburst.cpp
@@ -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();