m_ojoin Remove pointless FindChan() call

Found by Coverity, CID: 1135649
This commit is contained in:
Attila Molnar 2014-04-13 15:41:35 +02:00
parent 5c756cebce
commit 2334ebd927

View File

@ -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.");