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

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

Open
BehroozWolf opened this issue Dec 20, 2014 · 2 comments
Open

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

BehroozWolf opened this issue Dec 20, 2014 · 2 comments

Comments

@BehroozWolf
Copy link

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.

[email protected] [~/subway]# node -v
v0.10.34

[email protected] [~/subway]# npm -v
1.4.28

What can i do?

@thedjpetersen
Copy link
Owner

Did you say this was after a connection reset? It looks like you somehow stayed on a channel after you were disconnected

@BehroozWolf
Copy link
Author

Well, I start the subway in shell then and i connect the server until here everything okay. BUT when somebody or i part any chanell or quit the server, subway shut down. I have to start again. I mean is there any bug or something? Centos 5.11 and ircd: Unreal3.2.10.4

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

2 participants