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/m_denychans.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_denychans.cpp') diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp index 7d66aa701..c316a9da4 100644 --- a/src/modules/m_denychans.cpp +++ b/src/modules/m_denychans.cpp @@ -99,7 +99,7 @@ class ModuleDenyChannels : public Module if (!redirect.empty()) { // Ensure that contains a channel name. - if (!ServerInstance->IsChannel(redirect)) + if (!ServerInstance->Channels.IsChannel(redirect)) throw ModuleException(" is not a valid channel name, at " + tag->source.str()); // We defer the rest of the validation of the redirect channel until we have @@ -166,7 +166,7 @@ class ModuleDenyChannels : public Module // the target channel redirects elsewhere we just tell the user and deny the join. Channel* target = NULL; if (badchan.redirect.empty() || user->IsModeSet(antiredirectmode) - || ((target = ServerInstance->FindChan(badchan.redirect)) && target->IsModeSet(redirectmode))) + || ((target = ServerInstance->Channels.Find(badchan.redirect)) && target->IsModeSet(redirectmode))) { user->WriteNumeric(ERR_BADCHANNEL, cname, InspIRCd::Format("Channel %s is forbidden: %s", cname.c_str(), badchan.reason.c_str())); -- cgit v1.3.1-10-gc9f91