Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,8 @@ Client.prototype.convertEncoding = function(str) {
Client.prototype._updateMaxLineLength = function() {
// 497 = 510 - (":" + "!" + " PRIVMSG " + " :").length;
// target is determined in _speak() and subtracted there
this.maxLineLength = 497 - this.nick.length - this.hostMask.length;
var hostLength = (typeof (this.hostMask) === 'undefined') ? 0 : this.hostMask.length;
this.maxLineLength = 497 - this.nick.length - hostLength;
};
/*
* parseMessage(line, stripColors)
Expand Down