diff options
author | Peter Powell <petpow@saberuk.com> | 2013-12-11 05:05:36 +0000 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-01-21 00:43:12 +0100 |
commit | d0a472641b7c77fe5f40a6affb62de67be2ee888 (patch) | |
tree | 66fd6a7d57d2ca63f4251fb245d3d214d4210d75 /src/modules/m_joinflood.cpp | |
parent | b8f0e349ce8891d6236fc026c47139af1f05912c (diff) |
Fix some logically dead code which was found by Coverity.
Diffstat (limited to 'src/modules/m_joinflood.cpp')
-rw-r--r-- | src/modules/m_joinflood.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp index 40f7f1ba9..4524a93c0 100644 --- a/src/modules/m_joinflood.cpp +++ b/src/modules/m_joinflood.cpp @@ -153,17 +153,10 @@ class JoinFlood : public ModeHandler else { // new mode param, replace old with new - if ((nsecs > 0) && (njoins > 0)) - { - f = new joinfloodsettings(nsecs, njoins); - ext.set(channel, f); - channel->SetModeParam('j', parameter); - return MODEACTION_ALLOW; - } - else - { - return MODEACTION_DENY; - } + f = new joinfloodsettings(nsecs, njoins); + ext.set(channel, f); + channel->SetModeParam('j', parameter); + return MODEACTION_ALLOW; } } } |