mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-11 06:29:29 +01:00
commit
50d32924ef
@ -1371,8 +1371,6 @@ func (channel *Channel) SendSplitMessage(command string, minPrefixMode modes.Mod
|
|||||||
if !client.server.Config().Server.Compatibility.allowTruncation {
|
if !client.server.Config().Server.Compatibility.allowTruncation {
|
||||||
if !validateSplitMessageLen(histType, details.nickMask, chname, message) {
|
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"))
|
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
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -745,8 +745,6 @@ func (client *Client) run(session *Session) {
|
|||||||
continue
|
continue
|
||||||
} else if err == ircmsg.ErrorBodyTooLong && !client.server.Config().Server.Compatibility.allowTruncation {
|
} 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"))
|
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
|
continue
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
client.Quit(client.t("Received malformed line"), session)
|
client.Quit(client.t("Received malformed line"), session)
|
||||||
|
@ -2205,8 +2205,6 @@ func dispatchMessageToTarget(client *Client, tags map[string]string, histType hi
|
|||||||
if !client.server.Config().Server.Compatibility.allowTruncation {
|
if !client.server.Config().Server.Compatibility.allowTruncation {
|
||||||
if !validateSplitMessageLen(histType, client.NickMaskString(), tnick, message) {
|
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"))
|
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
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user