IRC Bot: Error - Registration Timeout

I am doing a simple IRC Bot in C. And I finally got a bot that binds and receives information. My code should also be sent, but the server acts as if it is not sending anything. When the bot connects, I get the following:

Received :: roc.esper.net NOTICE TO AUTH: *** View your hostname ...

Received :: roc.esper.net NOTICE AUTH: *** Found your hostname

at this moment my code sends this message:

Sent: NICK Goo

Sent: USER Goo * *: Goo

I decided to use wirehark, which is the registration you should send after the initial connection. However, I'm not sure if the data is really being sent, or maybe this is incorrect? Because after about 30 seconds, I also get this:

Received: ERROR: Close link: c-68-33-143-182.hsd1.md.comcast.net (Registration timeout)

And then my program closes.

Does anyone else know anything about irc authorization / registration software processes? Or does anyone else have helpful ideas?

thanks

** EDIT ** Fixed. I needed to send line terminators at the end of each line. \ R \ n

+5
source share
3 answers

Telnet for roc.esper.net:

~$ telnet roc.esper.net 6667
Trying 198.247.173.216...
Connected to roc.esper.net.
Escape character is '^]'.
:roc.esper.net NOTICE AUTH :*** Looking up your hostname...
:roc.esper.net NOTICE AUTH :*** Found your hostname
NICK Goo
USER Goo * * :Goo
PING :268966433
PONG :268966433

NICK, USER and PONG were sent by me. After this, the following message should be welcomed:

:roc.esper.net 001 Goo :Welcome to the EsperNet Internet Relay Chat Network Goo
:roc.esper.net 002 Goo :Your host is roc.esper.net[198.247.173.216/6667], running version esphyb-1.0.1

Etc...

So, check PING-PONG again and if your messages are sent correctly (especially CR / LF or "\ n" at the end).

, " ", , PONG , PING, ( , 30 ).

+3

USER NICK. IRC ?

"
> telnet irc.freenode.net 6667
NOTICE AUTH :*** Looking up your hostname...
NOTICE AUTH :*** Checking ident
NOTICE AUTH :*** No identd (auth) response
NOTICE AUTH :*** Couldn't look up your hostname
USER x x x x
NICK hwjrh
:kubrick.freenode.net 001 hwjrh :Welcome to the freenode IRC Network hwjrh
:kubrick.freenode.net 002 hwjrh :Your host is kubrick.freenode.net[kubrick.freenode.net/6667], running version hyperion-1.0.2b
"

; telnet Freenode, Undernet Dalnet ...

+2

, (, ), , , ,

USER Goo * * :Goo

USER Goo 0 * :Goo

, . , PING-PONG, (EDIT: , , PONG NICK).

, RFC 1459, .

+1

All Articles