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

xchat not connecting, server crash #3

Open
MFernstrom opened this issue May 29, 2015 · 2 comments
Open

xchat not connecting, server crash #3

MFernstrom opened this issue May 29, 2015 · 2 comments

Comments

@MFernstrom
Copy link

I got it running on Debian, and I can connect with a telnet session, and it seems to be working fine.

Then I try to connect using xchat, since it's supposed to be an irc server, and the server crashes.

** Reason for termination =
** {function_clause,[{irc_s2c_fsm,csend,
[<0.152.0>,err_nonicknamegiven],
[{file,"src/irc_s2c_fsm.erl"},{line,316}]},
{irc_s2c_fsm,login_nick,2,
[{file,"src/irc_s2c_fsm.erl"},{line,111}]},
{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,494}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]}

@archaelus
Copy link
Owner

This library isn't a full featured or debugged irc server/client (and I haven't worked on it in about 5 years). If you're interested in working on it, I think the problem will be with your client not sending a NICK command in the way that the library expects. A transcript of the commands your client sends would help a lot. The code is expecting a nick command around here https://github.com/archaelus/erlirc/blob/master/src/irc_s2c_fsm.erl#L89 , but it's getting something else and giving up. Possibly there's a setting in your client you can change, or it may be that the server-to-client fsm is too strict in the sequence of messages it requires.

@MFernstrom
Copy link
Author

My guess would be the order and sensitivity, xchat sends "cap ls", which I don't remember seeing in your code. I'll play around and see if I can figure it out

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