summaryrefslogtreecommitdiff
path: root/src
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
parentcee5a82d95fc3f5d3670ef483998bfc2d4a5a82e (diff)
Fix oversights in the WriteNumeric() parameter conversion
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_channel/cmd_names.cpp2
-rw-r--r--src/coremods/core_whois.cpp3
2 files changed, 3 insertions, 2 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, '@'));
diff --git a/src/coremods/core_whois.cpp b/src/coremods/core_whois.cpp
index 90a630f9c..ed5c1cda0 100644
--- a/src/coremods/core_whois.cpp
+++ b/src/coremods/core_whois.cpp
@@ -101,8 +101,9 @@ class WhoisChanListNumericBuilder : public Numeric::GenericBuilder<' ', false, W
{
public:
WhoisChanListNumericBuilder(WhoisContextImpl& whois)
- : Numeric::GenericBuilder<' ', false, WhoisNumericSink>(WhoisNumericSink(whois), 319, true, whois.GetSource()->nick.size() + whois.GetTarget()->nick.size() + 1)
+ : Numeric::GenericBuilder<' ', false, WhoisNumericSink>(WhoisNumericSink(whois), 319, false, whois.GetSource()->nick.size() + whois.GetTarget()->nick.size() + 1)
{
+ GetNumeric().push(whois.GetTarget()->nick).push(std::string());
}
};