-
Notifications
You must be signed in to change notification settings - Fork 421
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
The framework constantly crashes - "Cannot call method 'replace' of undefined" #364
Comments
The line on which the error happens seems to be regarding user modes in channel which have been known to be an issue with twitch IRC (#340). Although I don't think it should still be crashing maybe you could try using another network to test if it still happens. |
So perhaps when a moderator enters my Twitch chat, the bot will crash? I will test this. |
Having a moderator enter the channel does not cause the crash. It must be something else.
|
The erroring line has to do with mode removal. Maybe Twitch does something weird when moderators leave? |
That was it! That causes the crash. Is there a way to turn on a deep debugging mode or something so that I can see the raw IRC message that is being sent to the framework? If not, let me know what else you need me to do. =) |
I'm guessing right now that Twitch's IRC implementation sends Also, I don't actually develop or maintain node-irc so I don't really "need" anything. |
Yeah, I already have |
This is completely untested but adding an extra check should avoid it from trying to manipulate the impossible:
|
Thank you so much! I'll give it a whirl later on tonight when I get home from work. =D |
Looks like this fix works! Thanks again sim642. |
This should be merged into master. I'm getting crashes on Freenode too:
|
Fix channel user modes on Twitch IRC (closes #364)
I'm not sure what exactly causes this, but my IRC bot routinely crashes over the course of normal operation. The error message is always the same:
My bot will just echo traffic from one IRC server to another.
Here is the source code:
I'm assuming that the error lies in the framework, as the bot code is relatively simple. Can anyone shed some insight?
The text was updated successfully, but these errors were encountered: