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/mode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mode.cpp') diff --git a/src/mode.cpp b/src/mode.cpp index eb00f4fec..cdfc4b8d0 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -662,8 +662,8 @@ bool ModeParser::DelMode(ModeHandler* mh) break; case MODETYPE_CHANNEL: { - const chan_hash& chans = ServerInstance->GetChans(); - for (chan_hash::const_iterator i = chans.begin(); i != chans.end(); ) + const ChannelMap& chans = ServerInstance->Channels.GetChans(); + for (ChannelMap::const_iterator i = chans.begin(); i != chans.end(); ) { // The channel may not be in the hash after RemoveMode(), see m_permchannels Channel* chan = i->second; -- cgit v1.3.1-10-gc9f91