diff options
author | Peter Powell <petpow@saberuk.com> | 2017-10-18 00:36:26 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-10-18 00:36:26 +0100 |
commit | 7e4cc45149f41346f18e581cb301a1196b92bf68 (patch) | |
tree | d4d9122a2938f2dfd63da7acf0352aec06f22360 /src/modules/m_cap.cpp | |
parent | f237007bc1137dce5a7955238e7f0acd55942129 (diff) |
Fix sending a malformed 410 numeric when sent empty CAP commands.
Diffstat (limited to 'src/modules/m_cap.cpp')
-rw-r--r-- | src/modules/m_cap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp index 6b4387fdd..ae9e824f4 100644 --- a/src/modules/m_cap.cpp +++ b/src/modules/m_cap.cpp @@ -120,7 +120,7 @@ class CommandCAP : public Command } else { - user->WriteNumeric(ERR_INVALIDCAPSUBCOMMAND, "%s %s :Invalid CAP subcommand", user->nick.c_str(), subcommand.c_str()); + user->WriteNumeric(ERR_INVALIDCAPSUBCOMMAND, "%s %s :Invalid CAP subcommand", user->nick.c_str(), subcommand.empty() ? "*" : subcommand.c_str()); return CMD_FAILURE; } |