summaryrefslogtreecommitdiff
path: root/src/listmode.cpp
diff options
context:
space:
mode:
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)