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_ojoin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_ojoin.cpp') diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp index 775ae708f..2ee355fc3 100644 --- a/src/modules/m_ojoin.cpp +++ b/src/modules/m_ojoin.cpp @@ -47,7 +47,7 @@ class CommandOjoin : public SplitCommand CmdResult HandleLocal(LocalUser* user, const Params& parameters) override { // Make sure the channel name is allowable. - if (!ServerInstance->IsChannel(parameters[0])) + if (!ServerInstance->Channels.IsChannel(parameters[0])) { user->WriteNotice("*** Invalid characters in channel name or name too long"); return CmdResult::FAILURE; @@ -67,7 +67,7 @@ class CommandOjoin : public SplitCommand } else { - channel = ServerInstance->FindChan(parameters[0]); + channel = ServerInstance->Channels.Find(parameters[0]); if (!channel) return CmdResult::FAILURE; -- cgit v1.3.1-10-gc9f91