Skip to content

TypeError: Cannot call method 'part' of undefined #370

@BehroozWolf

Description

@BehroozWolf

Hello, subway works fine but when somebody part on channel its gives me this error;
20 Dec 02:56:28 - SEND: PART #yarisma
20 Dec 02:56:28 - Unhandled message: { prefix: 'irc.mynet.bz',
server: 'irc.mynet.bz',
command: 'err_notonchannel',
rawCommand: '442',
commandType: 'irc_error',
args: [ 'frt', '#yarisma', 'You're not on that channel' ] }

and when someboody leaves the server then

20 Dec 02:58:42 - Connection got "end" event
20 Dec 02:58:42 - Connection got "close" event

/home/trirc/subway/lib/connection.js:393
client.part(data.target, _.rest(args).join(" "));
^
TypeError: Cannot call method 'part' of undefined
at Socket. (/home/trirc/subway/lib/connection.js:393:18)
at Socket.emit (events.js:95:17)
at Socket.onevent (/home/trirc/subway/node_modules/socket.io/lib/socket.js:326:8)
at Socket.onpacket (/home/trirc/subway/node_modules/socket.io/lib/socket.js:286:12)
at Client.ondecoded (/home/trirc/subway/node_modules/socket.io/lib/client.js:181:14)
at Decoder.Emitter.emit (/home/trirc/subway/node_modules/socket.io/node_modules/socket.io-parser/node_modules/emitter/index.js:132:20)
at Decoder.add (/home/trirc/subway/node_modules/socket.io/node_modules/socket.io-parser/index.js:233:12)
at Client.ondata (/home/trirc/subway/node_modules/socket.io/lib/client.js:166:16)
at Socket.emit (events.js:95:17)
at Socket.onPacket (/home/trirc/subway/node_modules/socket.io/node_modules/engine.io/lib/socket.js:96:14)

and subway shut itself down.

trirc@keyfalem.com [~/subway]# node -v
v0.10.34

trirc@keyfalem.com [~/subway]# npm -v
1.4.28

What can i do?

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