diff options
Diffstat (limited to 'src/listmode.cpp')
-rw-r--r-- | src/listmode.cpp | 3 |
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) |