-
Notifications
You must be signed in to change notification settings - Fork 11
Add support for error 477? #19
Comments
You raise a good point! I didn't know there was a |
Oh. You mean the switch statement inside the raw handler doesn't include it? You should be able to handle this message specifically, for now, by adding a raw listener and checking by code. An event for unhandled messages, separately, sounds like a good idea, as does handling this specific message. I'll get to that. |
I did add a raw listener so I can handle it in the meantime. Yeah, that's the switch statement that I was referring to. Even if it was just added to Thanks for forking this project and maintaining it. |
Sadly, according to http://defs.ircdocs.horse/defs/numerics.html#err-nochanmodes-477 it looks like error 477 has conflicting usage: - ERR_NOCHANMODES (by RFC2812 spec) - ERR_NEEDREGGEDNICK (with Bahamut, ircu, Unreal) This commit allows codes to just specify a type, instead of also a name, and adds a test to ensure this code is parsed as expected. It also fixes up the order of actual/expected in test-parse-line.js's t.equal calls, and makes the messages more grammatical in context (describe the test, not the success).
No problem! So it looks like error 477 has conflicting usage. http://defs.ircdocs.horse/defs/numerics.html#err-nochanmodes-477 puts it as both |
Fix issue #19 by adding support for error 477
Thanks for updating this, I've been pointing to the latest commit and it's been working well. Do you think you'll be able to release a new version with it soon? |
I was planning on trying to get some other changes in before I do that – mostly bumping up the test coverage – but I probably don't really need to. Hm. I should have a new version out in about a week? I'm not sure about earlier than that, though, I'm trying to avoid doing too many new releases in a short period and I expect I'll find more changes I want to get through after looking through the codebase some more. |
That makes sense and sounds good to me. Thanks |
A bit later than I expected, and with less in the way of tests than I'd hoped (#29 lists the ones I hope to add soon, but it's a long list and kinda tedious to get to), but I've now released v0.7.0! Hopefully it all works as expected and I didn't accidentally mess anything up. |
When trying to join
##java
on freenode, I'm getting a 477 command as the response. That command isn't in the switch statement in theraw
listener, or incodes.js
. So it's falling through to the default case and has a commandType ofnormal
so it's only being log. Which means that I can't handle it to let the user know they can't join the channel.Here is the log
Would it be possible to add that code so it gets emitted as an error? Or possibly emit unhandled messages so the client can handle them somehow?
The text was updated successfully, but these errors were encountered: