Просмотр исходного кода

fix #1577

Remove debugging loglines for truncation
tags/v2.7.0-rc1
Shivaram Lingamneni 3 лет назад
Родитель
Сommit
da216fc699
3 измененных файлов: 0 добавлений и 6 удалений
  1. 0
    2
      irc/channel.go
  2. 0
    2
      irc/client.go
  3. 0
    2
      irc/handlers.go

+ 0
- 2
irc/channel.go Просмотреть файл

@@ -1371,8 +1371,6 @@ func (channel *Channel) SendSplitMessage(command string, minPrefixMode modes.Mod
1371 1371
 	if !client.server.Config().Server.Compatibility.allowTruncation {
1372 1372
 		if !validateSplitMessageLen(histType, details.nickMask, chname, message) {
1373 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 1374
 			return
1377 1375
 		}
1378 1376
 	}

+ 0
- 2
irc/client.go Просмотреть файл

@@ -745,8 +745,6 @@ func (client *Client) run(session *Session) {
745 745
 			continue
746 746
 		} else if err == ircmsg.ErrorBodyTooLong && !client.server.Config().Server.Compatibility.allowTruncation {
747 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 748
 			continue
751 749
 		} else if err != nil {
752 750
 			client.Quit(client.t("Received malformed line"), session)

+ 0
- 2
irc/handlers.go Просмотреть файл

@@ -2205,8 +2205,6 @@ func dispatchMessageToTarget(client *Client, tags map[string]string, histType hi
2205 2205
 		if !client.server.Config().Server.Compatibility.allowTruncation {
2206 2206
 			if !validateSplitMessageLen(histType, client.NickMaskString(), tnick, message) {
2207 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 2208
 				return
2211 2209
 			}
2212 2210
 		}

Загрузка…
Отмена
Сохранить