diff options
| author | 2010-08-05 09:10:54 -0400 | |
|---|---|---|
| committer | 2010-08-05 09:10:54 -0400 | |
| commit | 818f9f79047e27979720495dd67df8a6ead9d212 (patch) | |
| tree | f1d44a54d60351c9992407c1c84f28a1e04e4c57 /src/mode.cpp | |
| parent | Call OnCheckJoin for override joins so hooks are still run (diff) | |
Allow OnParameterMissing to fill in the missing parameter
Diffstat (limited to 'src/mode.cpp')
| -rw-r--r-- | src/mode.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 2e6f72d69..979413730 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -114,7 +114,7 @@ void ModeHandler::DisplayEmptyList(User*, Channel*) { } -void ModeHandler::OnParameterMissing(User* user, User* dest, Channel* channel) +void ModeHandler::OnParameterMissing(User* user, User* dest, Channel* channel, std::string& param) { } @@ -511,8 +511,9 @@ void ModeParser::Parse(const std::vector<std::string>& parameters, User *user, E if (pcnt && param_at == parameters.size()) { /* No parameter, continue to the next mode */ - mh->OnParameterMissing(user, targetuser, targetchannel); - continue; + mh->OnParameterMissing(user, targetuser, targetchannel, parameter); + if (parameter.empty()) + continue; } else if (pcnt) { |
