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

Handle UnrealIRCd Raw unhandled messages #109

Open
vBm opened this issue Aug 7, 2023 · 2 comments
Open

Handle UnrealIRCd Raw unhandled messages #109

vBm opened this issue Aug 7, 2023 · 2 comments

Comments

@vBm
Copy link

vBm commented Aug 7, 2023

Several unhandled messages are presented upon connecting.

This complete log has been semi-redacted to remove the information about the server and password.

Details

╰─ bun index.js
6 Aug 21:36:47 - Sending irc NICK/USER
6 Aug 21:36:47 - SEND: CAP LS 302
6 Aug 21:36:47 - SEND: NICK bunbot
6 Aug 21:36:47 - SEND: USER nodebot 8 * :nodeJS IRC client
6 Aug 21:36:49 - SEND: CAP REQ : sasl
6 Aug 21:36:49 - SEND: PONG 3E954B51
6 Aug 21:36:49 - SEND: AUTHENTICATE PLAIN
6 Aug 21:36:49 - SEND: AUTHENTICATE XXXXXXXXXXXXXXXXXXXXXXXXXX
6 Aug 21:36:49 - SEND: CAP END
6 Aug 21:36:52 - Unhandled message: { args:
[ 'bunbot',
'foo.bar.baz.net',
'is now your displayed host' ],
commandType: 'normal',
prefix: 'irc.example.net',
server: 'irc.example.net',
command: '396',
rawCommand: '396' }
6 Aug 21:36:52 - MODE: bunbot sets mode: +iwxz
6 Aug 21:36:52 - SEND: CAP END
6 Aug 21:36:52 - GOT NOTICE from "NickServ": "Your nickname is not registered. To register it, use: /msg NickServ REGISTER password email"
6 Aug 21:36:52 - SEND: mode bunbot +Birtwxz
6 Aug 21:36:52 - SEND: WHOIS bunbot
6 Aug 21:36:52 - SEND: join #XXXX
6 Aug 21:36:53 - MODE: bunbot sets mode: +B
6 Aug 21:36:53 - Unhandled message: { args: [ 'bunbot', 'bunbot', 'is using modes +iwxzB ' ],
commandType: 'normal',
prefix: 'irc.example.net',
server: 'irc.example.net',
command: '379',
rawCommand: '379' }
6 Aug 21:36:53 - Unhandled message: { args:
[ 'bunbot',
'bunbot',
'is connecting from *@foo.bar.baz.net 127.0.0.1' ],
commandType: 'normal',
prefix: 'irc.example.net',
server: 'irc.example.net',
command: '378',
rawCommand: '378' }
6 Aug 21:36:53 - Unhandled message: { args:
[ 'bunbot',
'bunbot',
'is using a Secure Connection [TLSv1.3-TLS_CHACHA20_POLY1305_SHA256]' ],
commandType: 'normal',
prefix: 'irc.example.net',
server: 'irc.example.net',
command: '671',
rawCommand: '671' }
6 Aug 21:36:53 - Unhandled message: { args: [ 'bunbot', 'bunbot', 'is a \u0002Bot\u0002 on Example-NET' ],
commandType: 'normal',
prefix: 'irc.example.net',
server: 'irc.example.net',
command: '335',
rawCommand: '335' }
6 Aug 21:36:53 - Unhandled message: { args:
[ 'bunbot',
'#XXXX',
'Cannot join channel: Go to #help if you need assistance.' ],
commandType: 'normal',
prefix: 'irc.example.net',
server: 'irc.example.net',
command: '448',
rawCommand: '448' }
6 Aug 21:36:53 - SEND: MODE #help

The list of unhandled RAW codes is: (ill link each and every one of them to their defined lines on UnrealIRCd source)

Also there's a list of IRC/2 numerics to see possible conflicting numbers:
IRC2/ Numeric List

Apps used:

  • UnrealIRCd-6.0.4.2
  • bun 0.7.3 / node.js 20.5.0
  • matrix-org-irc 2.1.0
@progval
Copy link

progval commented Aug 7, 2023

There's no such thing as a "RAW code". It just means node-irc does not implement these numerics.

Check out https://defs.ircdocs.horse/defs/numerics.html if you want an exhaustive list.

@Half-Shot
Copy link

Half-Shot commented Aug 7, 2023

To be honest I think the unhandled messages are too noisy, it's not a bug not to handle something. However, we should always seek to increase our library of message handlers if that makes sense :)

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

3 participants