diff options
| author | 2016-08-29 14:50:08 +0200 | |
|---|---|---|
| committer | 2016-08-29 14:50:08 +0200 | |
| commit | 19f0c09aa783cc3b945c880d509c1da8bc8e0275 (patch) | |
| tree | 06930b6a8adcbcd3f90e297e2bb705bd13908f37 /src/channels.cpp | |
| parent | Unregister modes before unhooking extensions when unloading a module (diff) | |
Convert ModeHandler::GetNumParams() to NeedsParam() that returns a bool
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 7f2485a49..a757cdc5a 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -138,7 +138,7 @@ void Channel::SetDefaultModes() if (mode->IsPrefixMode()) continue; - if (mode->GetNumParams(true)) + if (mode->NeedsParam(true)) { list.GetToken(parameter); // If the parameter begins with a ':' then it's invalid @@ -148,7 +148,7 @@ void Channel::SetDefaultModes() else parameter.clear(); - if ((mode->GetNumParams(true)) && (parameter.empty())) + if ((mode->NeedsParam(true)) && (parameter.empty())) continue; mode->OnModeChange(ServerInstance->FakeClient, ServerInstance->FakeClient, this, parameter, true); |
