mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
m_ojoin Remove pointless FindChan() call
Found by Coverity, CID: 1135649
This commit is contained in:
parent
5c756cebce
commit
2334ebd927
@ -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.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user