From 146d85b5dea9ecb803a9a47c68b5489905634125 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 14 Mar 2014 12:56:20 +0100 Subject: Add InspIRCd::GetChans(), remove ChannelCount() --- src/modules.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 3723b09c3..62c3aa213 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -390,7 +390,8 @@ void ModuleManager::DoSafeUnload(Module* mod) std::vector > items; ServerInstance->Extensions.BeginUnregister(modfind->second, items); /* Give the module a chance to tidy out all its metadata */ - for (chan_hash::iterator c = ServerInstance->chanlist->begin(); c != ServerInstance->chanlist->end(); ) + const chan_hash& chans = ServerInstance->GetChans(); + for (chan_hash::const_iterator c = chans.begin(); c != chans.end(); ) { Channel* chan = c->second; ++c; -- cgit v1.3.1-10-gc9f91