I'm making a simple IRC Bot in C. And I finally got the bot connecting and receiving information. My code is supposed to be sending as well, but the server is acting as if it is not sending anything. When The bot connects, I receive this:
Recieved: :roc.esper.net NOTICE AUTH :*** Looking up your hostname...
Recieved: :roc.esper.net NOTICE AUTH :*** Found your hostname
at which point my code sends this:
Sent: NICK Goo
Sent: USER Goo * * :Goo
I determined from using wireshark that this is the registration you should send after the initial connect. However, I'm not sure the data is actually sending or maybe it is invalid somehow? Because after about 30 seconds of nothing i also receive this:
Recieved: ERROR :Closing Link: c-68-33-143-182.hsd1.md.comcast.net (Registration timed out)
And then my program closes.
Does anyone else know anything about the programatic auth/registration processes in irc? Or does anyone else have any helpful ideas at all?
Thanks
** EDIT ** Fixed. I needed to be sending line terminators at the end of each line. \r\n