Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

throw error irc.js #554

Open
TripleZer000 opened this issue Feb 7, 2020 · 0 comments
Open

throw error irc.js #554

TripleZer000 opened this issue Feb 7, 2020 · 0 comments

Comments

@TripleZer000
Copy link

My bot keeps crashing every week or two due to the error. I love node-irc but i am not happy with the error. I did some browsing and this what they claim to help. I do not host my code. The irc server owner does and suggested i send this.
THE ERROR
.../node_modules/irc/lib/irc.js:849
throw err;
^

TypeError: Cannot read property 'filter' of undefined
at chanModes (.../node_modules/irc/lib/irc.js:300:37)
at .../node_modules/irc/lib/irc.js:319:25
at Array.forEach (native)
at Client. (.../node_modules/irc/lib/irc.js:270:26)
at emitOne (events.js:77:13)
at Client.emit (events.js:169:7)
at iterator (.../node_modules/irc/lib/irc.js:846:26)
at Array.forEach (native)
at Socket.handleData (.../node_modules/irc/lib/irc.js:841:15)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)

THE FIX!!
line 319 chanModes(mode, [modeArg]);

[modeArg] needs to be modeArg
no [ ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant