From 0c750c060839f9018ca129bd7456184792ea0dc0 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 21 Jun 2020 04:25:45 +0100 Subject: Move channel logic from InspIRCd to the new ChannelManager class. --- src/modules.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index bc2970a7d..d66d2e8ae 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -391,8 +391,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 */ - const chan_hash& chans = ServerInstance->GetChans(); - for (chan_hash::const_iterator c = chans.begin(); c != chans.end(); ) + const ChannelMap& chans = ServerInstance->Channels.GetChans(); + for (ChannelMap::const_iterator c = chans.begin(); c != chans.end(); ) { Channel* chan = c->second; ++c; -- cgit v1.3.1-10-gc9f91