diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-04-13 15:41:35 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-04-13 15:41:35 +0200 |
commit | 2334ebd9273bf7f9751a723a6196efb222997185 (patch) | |
tree | d800613cda24a39bd4eade58392dc8ed29401082 /src/modules | |
parent | 5c756cebce6c06e9e183b6c6d1ee8debdb8b90af (diff) |
m_ojoin Remove pointless FindChan() call
Found by Coverity, CID: 1135649
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_ojoin.cpp | 1 |
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."); |