Browse Source

fix #1577

Remove debugging loglines for truncation
tags/v2.7.0-rc1
Shivaram Lingamneni 3 years ago
parent
commit
da216fc699
3 changed files with 0 additions and 6 deletions
  1. 0
    2
      irc/channel.go
  2. 0
    2
      irc/client.go
  3. 0
    2
      irc/handlers.go

+ 0
- 2
irc/channel.go View File

1371
 	if !client.server.Config().Server.Compatibility.allowTruncation {
1371
 	if !client.server.Config().Server.Compatibility.allowTruncation {
1372
 		if !validateSplitMessageLen(histType, details.nickMask, chname, message) {
1372
 		if !validateSplitMessageLen(histType, details.nickMask, chname, message) {
1373
 			rb.Add(nil, client.server.name, ERR_INPUTTOOLONG, details.nick, client.t("Line too long to be relayed without truncation"))
1373
 			rb.Add(nil, client.server.name, ERR_INPUTTOOLONG, details.nick, client.t("Line too long to be relayed without truncation"))
1374
-			// TODO(#1577) remove this logline:
1375
-			client.server.logger.Debug("internal", "rejected truncation-requiring DM from client", details.nick)
1376
 			return
1374
 			return
1377
 		}
1375
 		}
1378
 	}
1376
 	}

+ 0
- 2
irc/client.go View File

745
 			continue
745
 			continue
746
 		} else if err == ircmsg.ErrorBodyTooLong && !client.server.Config().Server.Compatibility.allowTruncation {
746
 		} else if err == ircmsg.ErrorBodyTooLong && !client.server.Config().Server.Compatibility.allowTruncation {
747
 			session.Send(nil, client.server.name, ERR_INPUTTOOLONG, client.Nick(), client.t("Input line too long"))
747
 			session.Send(nil, client.server.name, ERR_INPUTTOOLONG, client.Nick(), client.t("Input line too long"))
748
-			// TODO(#1577) remove this logline:
749
-			client.server.logger.Debug("internal", "rejected MaxLineLen-exceeding line from client", client.Nick())
750
 			continue
748
 			continue
751
 		} else if err != nil {
749
 		} else if err != nil {
752
 			client.Quit(client.t("Received malformed line"), session)
750
 			client.Quit(client.t("Received malformed line"), session)

+ 0
- 2
irc/handlers.go View File

2205
 		if !client.server.Config().Server.Compatibility.allowTruncation {
2205
 		if !client.server.Config().Server.Compatibility.allowTruncation {
2206
 			if !validateSplitMessageLen(histType, client.NickMaskString(), tnick, message) {
2206
 			if !validateSplitMessageLen(histType, client.NickMaskString(), tnick, message) {
2207
 				rb.Add(nil, server.name, ERR_INPUTTOOLONG, client.Nick(), client.t("Line too long to be relayed without truncation"))
2207
 				rb.Add(nil, server.name, ERR_INPUTTOOLONG, client.Nick(), client.t("Line too long to be relayed without truncation"))
2208
-				// TODO(#1577) remove this logline:
2209
-				client.server.logger.Debug("internal", "rejected truncation-requiring channel message from client", details.nick)
2210
 				return
2208
 				return
2211
 			}
2209
 			}
2212
 		}
2210
 		}

Loading…
Cancel
Save