]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_list.cpp
Remove User::WriteTo() functions; use User::WriteFrom() instead
[user/henk/code/inspircd.git] / src / coremods / core_list.cpp
index ceffae43a5606de859e07a0f0f03787c10547da6..505b0764caa2e0fe1b82471689fb904d5abe01a2 100644 (file)
@@ -68,7 +68,8 @@ CmdResult CommandList::Handle (const std::vector<std::string>& 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();