summaryrefslogtreecommitdiff
path: root/src/coremods/core_channel/cmd_names.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-03-19 16:20:01 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-03-19 16:20:01 +0100
commit266eb73475303ed6d48add31eec95700923e2146 (patch)
treee0d28826d7162139ea369026aee3928f97cccf09 /src/coremods/core_channel/cmd_names.cpp
parentcee5a82d95fc3f5d3670ef483998bfc2d4a5a82e (diff)
Fix oversights in the WriteNumeric() parameter conversion
Diffstat (limited to 'src/coremods/core_channel/cmd_names.cpp')
-rw-r--r--src/coremods/core_channel/cmd_names.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_channel/cmd_names.cpp b/src/coremods/core_channel/cmd_names.cpp
index 53934b5e3..21fe43cca 100644
--- a/src/coremods/core_channel/cmd_names.cpp
+++ b/src/coremods/core_channel/cmd_names.cpp
@@ -68,7 +68,7 @@ CmdResult CommandNames::HandleLocal(const std::vector<std::string>& parameters,
void CommandNames::SendNames(LocalUser* user, Channel* chan, bool show_invisible)
{
- Numeric::Builder<' '> reply(user, RPL_NAMREPLY, false, chan->name.size() + 4);
+ Numeric::Builder<' '> reply(user, RPL_NAMREPLY, false, chan->name.size() + 3);
Numeric::Numeric& numeric = reply.GetNumeric();
if (chan->IsModeSet(secretmode))
numeric.push(std::string(1, '@'));