You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible to cause a Client's maxLineLength to be undefined, so that when it tries to split long lines, it fails:
/Users/secretrobotron/src/webmaker-projects-bot/node_modules/irc/lib/irc.js:923
if (c.match(/\s/)) {
^
TypeError: Cannot read property 'match' of undefined
at Client._splitLongLines (/Users/secretrobotron/src/webmaker-projects-bot/node_modules/irc/lib/irc.js:923:10)
at /Users/secretrobotron/src/webmaker-projects-bot/node_modules/irc/lib/irc.js:960:36
at Array.forEach (native)
at Client._speak (/Users/secretrobotron/src/webmaker-projects-bot/node_modules/irc/lib/irc.js:959:12)
at Client.say (/Users/secretrobotron/src/webmaker-projects-bot/node_modules/irc/lib/irc.js:946:10)
at Request._callback (/Users/secretrobotron/src/webmaker-projects-bot/worker.js:78:21)
at Request.self.callback (/Users/secretrobotron/src/webmaker-projects-bot/node_modules/request/request.js:198:22)
at Request.emit (events.js:110:17)
at Request.<anonymous> (/Users/secretrobotron/src/webmaker-projects-bot/node_modules/request/request.js:1073:14)
at Request.emit (events.js:129:20)
The text was updated successfully, but these errors were encountered:
This is due to the none existent: 'this.maxLineLength' line 957.
Client.prototype._speak = function (kind, target, text) {
var self = this;
console.log(this);
var maxLength = this.maxLineLength - target.length;
if (typeof text !== 'undefined') {
text.toString().split(/\r?\n/).filter(function (line) {
return line.length > 0;
}).forEach(function (line) {
Not sure if this was removed, as I'm new to this project,
I changed this.maxLineLength to this.supported.channel.length the default value is 200, not sure if this is even the correct 'length' but it seems to work?? can anyone verify this for the Client object?
I'll submit a very small pull request if this IS the case.
It's possible to cause a
Client
'smaxLineLength
to beundefined
, so that when it tries to split long lines, it fails:The text was updated successfully, but these errors were encountered: