From: Attila Molnar Date: Sun, 13 Apr 2014 13:41:35 +0000 (+0200) Subject: m_ojoin Remove pointless FindChan() call X-Git-Tag: v2.0.23~182 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=2334ebd9273bf7f9751a723a6196efb222997185;p=user%2Fhenk%2Fcode%2Finspircd.git m_ojoin Remove pointless FindChan() call Found by Coverity, CID: 1135649 --- diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp index 8f8d3ca90..026d98f86 100644 --- a/src/modules/m_ojoin.cpp +++ b/src/modules/m_ojoin.cpp @@ -75,7 +75,6 @@ class CommandOjoin : public Command if (notice) { - channel = ServerInstance->FindChan(parameters[0]); channel->WriteChannelWithServ(ServerInstance->Config->ServerName, "NOTICE %s :%s joined on official network business.", parameters[0].c_str(), user->nick.c_str()); ServerInstance->PI->SendChannelNotice(channel, 0, user->nick + " joined on official network business.");