diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-11-28 03:22:02 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-11-28 19:28:36 +0100 |
commit | 772dad05a42e20e03a5445b84a7f6612ee44283f (patch) | |
tree | 5f3df00983b90a3d8ac87da2074a3a5adfbe1be3 /src/modules/m_spanningtree/fjoin.cpp | |
parent | 56cde817e033c6235cc6a846c90fd143ffb2a0ad (diff) |
m_spanningtree Remove redundant params.size() checks
TreeSocket::ProcessConnectedLine() and CommandParser::CallHandler() only call the handler when there are enough parameters
Diffstat (limited to 'src/modules/m_spanningtree/fjoin.cpp')
-rw-r--r-- | src/modules/m_spanningtree/fjoin.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/fjoin.cpp b/src/modules/m_spanningtree/fjoin.cpp index 929ace474..71d837b28 100644 --- a/src/modules/m_spanningtree/fjoin.cpp +++ b/src/modules/m_spanningtree/fjoin.cpp @@ -55,8 +55,6 @@ CmdResult CommandFJoin::Handle(const std::vector<std::string>& params, User *src * losing side, so only its own modes get applied. Life is simple for those * who succeed at internets. :-) */ - if (params.size() < 3) - return CMD_INVALID; irc::modestacker modestack(true); /* Modes to apply from the users in the user list */ User* who = NULL; /* User we are currently checking */ |