X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcoremods%2Fcore_list.cpp;h=505b0764caa2e0fe1b82471689fb904d5abe01a2;hb=a6e68c0d346395630dee9dc69211a284360b6c62;hp=ceffae43a5606de859e07a0f0f03787c10547da6;hpb=c67d3103e9f7397f0ab9631bf07a5e5547deb2c3;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/coremods/core_list.cpp b/src/coremods/core_list.cpp index ceffae43a..505b0764c 100644 --- a/src/coremods/core_list.cpp +++ b/src/coremods/core_list.cpp @@ -68,7 +68,8 @@ CmdResult CommandList::Handle (const std::vector& parameters, User } } - 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) { // attempt to match a glob pattern long users = i->second->GetUserCounter();