|
@@ -747,9 +747,11 @@ func (client *Client) run(session *Session) {
|
747
|
747
|
} else if err == ircmsg.ErrorTagsTooLong {
|
748
|
748
|
session.Send(nil, client.server.name, ERR_INPUTTOOLONG, client.Nick(), client.t("Input line contained excess tag data"))
|
749
|
749
|
continue
|
750
|
|
- } else if err == ircmsg.ErrorBodyTooLong && !client.server.Config().Server.Compatibility.allowTruncation {
|
751
|
|
- session.Send(nil, client.server.name, ERR_INPUTTOOLONG, client.Nick(), client.t("Input line too long"))
|
752
|
|
- continue
|
|
750
|
+ } else if err == ircmsg.ErrorBodyTooLong {
|
|
751
|
+ if !client.server.Config().Server.Compatibility.allowTruncation {
|
|
752
|
+ session.Send(nil, client.server.name, ERR_INPUTTOOLONG, client.Nick(), client.t("Input line too long"))
|
|
753
|
+ continue
|
|
754
|
+ } // else: proceed with the truncated line
|
753
|
755
|
} else if err != nil {
|
754
|
756
|
client.Quit(client.t("Received malformed line"), session)
|
755
|
757
|
break
|