From 2334ebd9273bf7f9751a723a6196efb222997185 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sun, 13 Apr 2014 15:41:35 +0200 Subject: m_ojoin Remove pointless FindChan() call Found by Coverity, CID: 1135649 --- src/modules/m_ojoin.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src') 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."); -- cgit v1.2.3