From da216fc699b65b5cbf6aa5483f7c92e673d8fee9 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 19 Apr 2021 07:06:49 -0400 Subject: [PATCH] fix #1577 Remove debugging loglines for truncation --- irc/channel.go | 2 -- irc/client.go | 2 -- irc/handlers.go | 2 -- 3 files changed, 6 deletions(-) diff --git a/irc/channel.go b/irc/channel.go index 937b4190..5b371764 100644 --- a/irc/channel.go +++ b/irc/channel.go @@ -1371,8 +1371,6 @@ func (channel *Channel) SendSplitMessage(command string, minPrefixMode modes.Mod if !client.server.Config().Server.Compatibility.allowTruncation { if !validateSplitMessageLen(histType, details.nickMask, chname, message) { rb.Add(nil, client.server.name, ERR_INPUTTOOLONG, details.nick, client.t("Line too long to be relayed without truncation")) - // TODO(#1577) remove this logline: - client.server.logger.Debug("internal", "rejected truncation-requiring DM from client", details.nick) return } } diff --git a/irc/client.go b/irc/client.go index 53488bc2..934497f9 100644 --- a/irc/client.go +++ b/irc/client.go @@ -745,8 +745,6 @@ func (client *Client) run(session *Session) { continue } else if err == ircmsg.ErrorBodyTooLong && !client.server.Config().Server.Compatibility.allowTruncation { session.Send(nil, client.server.name, ERR_INPUTTOOLONG, client.Nick(), client.t("Input line too long")) - // TODO(#1577) remove this logline: - client.server.logger.Debug("internal", "rejected MaxLineLen-exceeding line from client", client.Nick()) continue } else if err != nil { client.Quit(client.t("Received malformed line"), session) diff --git a/irc/handlers.go b/irc/handlers.go index 80a8cf44..c8d6a311 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -2205,8 +2205,6 @@ func dispatchMessageToTarget(client *Client, tags map[string]string, histType hi if !client.server.Config().Server.Compatibility.allowTruncation { if !validateSplitMessageLen(histType, client.NickMaskString(), tnick, message) { rb.Add(nil, server.name, ERR_INPUTTOOLONG, client.Nick(), client.t("Line too long to be relayed without truncation")) - // TODO(#1577) remove this logline: - client.server.logger.Debug("internal", "rejected truncation-requiring channel message from client", details.nick) return } }