summaryrefslogtreecommitdiff
path: root/src/modules/m_ojoin.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-04-13 15:41:35 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-04-13 15:41:35 +0200
commit2334ebd9273bf7f9751a723a6196efb222997185 (patch)
treed800613cda24a39bd4eade58392dc8ed29401082 /src/modules/m_ojoin.cpp
parent5c756cebce6c06e9e183b6c6d1ee8debdb8b90af (diff)
m_ojoin Remove pointless FindChan() call
Found by Coverity, CID: 1135649
Diffstat (limited to 'src/modules/m_ojoin.cpp')
-rw-r--r--src/modules/m_ojoin.cpp1
1 files changed, 0 insertions, 1 deletions
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.");