summaryrefslogtreecommitdiff
path: root/src/listmode.cpp
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/listmode.cpp
parentdd94ac5e3c6485c294394cc18cbc4228510e7a47 (diff)
Add InspIRCd::GetChans(), remove ChannelCount()
Diffstat (limited to 'src/listmode.cpp')
-rw-r--r--src/listmode.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/listmode.cpp b/src/listmode.cpp
index 2e6703df3..0f139bb01 100644
--- a/src/listmode.cpp
+++ b/src/listmode.cpp
@@ -81,7 +81,8 @@ void ListModeBase::DoRehash()
if (oldlimits == chanlimits)
return;
- 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)
{
ChanData* cd = extItem.get(i->second);
if (cd)