diff options
| author | 2020-06-21 04:25:45 +0100 | |
|---|---|---|
| committer | 2021-05-08 15:31:50 +0100 | |
| commit | 0c750c060839f9018ca129bd7456184792ea0dc0 (patch) | |
| tree | 43aa8d0a593afa292e2922d2481b2349e0dc8dfd /src/modules/m_denychans.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
Move channel logic from InspIRCd to the new ChannelManager class.
Diffstat (limited to 'src/modules/m_denychans.cpp')
| -rw-r--r-- | src/modules/m_denychans.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 <badchan:redirect> contains a channel name. - if (!ServerInstance->IsChannel(redirect)) + if (!ServerInstance->Channels.IsChannel(redirect)) throw ModuleException("<badchan:redirect> 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())); |
