Skip to content

Subway should handle inncorrect server passwords #341

Description

@tlaundal

When connecting to a bouncer(ZNC) with the wrong password, you get this error:

13 May 16:25:36 - SEND: PASS sorry - secret
13 May 16:25:36 - SEND: NICK totokaka
13 May 16:25:36 - SEND: USER totokaka 8 * Tobias
13 May 16:25:37 - Unhandled message: { prefix: 'irc.znc.in',
  server: 'irc.znc.in',
  command: 'err_passwdmismatch',
  rawCommand: '464',
  commandType: 'irc_error',
  args: [ 'totokaka', 'Invalid Password' ] }
{ prefix: 'irc.znc.in',
  server: 'irc.znc.in',
  command: 'err_passwdmismatch',
  rawCommand: '464',
  commandType: 'irc_error',
  args: [ 'totokaka', 'Invalid Password' ],
  client_server: 'irc.totokaka.io' }

/tmp/subway/node_modules/irc/lib/irc.js:664
                    throw err;
                          ^
TypeError: Cannot call method 'addMessage' of undefined
    at util.handle_irc (/tmp/subway/src/js/handle_irc.js:252:16)
    at Client.<anonymous> (/tmp/subway/lib/connection.js:69:7)
    at Client.EventEmitter.emit (events.js:117:20)
    at /tmp/subway/node_modules/irc/lib/irc.js:661:22
    at Array.forEach (native)
    at Socket.<anonymous> (/tmp/subway/node_modules/irc/lib/irc.js:655:15)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:745:14)
    at Socket.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:407:10)
(refactor= ab3af6e)[tobias@tobias-arch subway]$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions