]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_channel/cmd_names.cpp
Fix oversights in the WriteNumeric() parameter conversion
[user/henk/code/inspircd.git] / src / coremods / core_channel / cmd_names.cpp
index 53934b5e3a06bf36d5a5416b124b4410560acf02..21fe43ccab69e5414c06ca4fbefa0cb54b765479 100644 (file)
@@ -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, '@'));