diff options
| author | 2020-04-14 16:41:31 +0100 | |
|---|---|---|
| committer | 2020-04-14 16:41:31 +0100 | |
| commit | b382496d5c07cb236f2b26d1ce360f75a3cad6cb (patch) | |
| tree | 94d9568c862e64c20bde370365f087259a87e804 /src/commands.cpp | |
| parent | Switch the spanningtree module from reference<> to std::shared_ptr<>. (diff) | |
Alow modules to specify multiple syntax lines.
Diffstat (limited to 'src/commands.cpp')
| -rw-r--r-- | src/commands.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index 6ca6620d5..40750837e 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -63,8 +63,9 @@ void Command::RegisterService() void Command::TellNotEnoughParameters(LocalUser* user, const Params& parameters) { user->WriteNumeric(ERR_NEEDMOREPARAMS, name, "Not enough parameters."); - if (ServerInstance->Config->SyntaxHints && user->registered == REG_ALL && syntax.length()) - user->WriteNumeric(RPL_SYNTAX, name, syntax); + if (ServerInstance->Config->SyntaxHints && user->registered == REG_ALL) + for (const std::string& syntaxline : this->syntax) + user->WriteNumeric(RPL_SYNTAX, name, syntaxline); } void Command::TellNotRegistered(LocalUser* user, const Params& parameters) |
