Well... you can actually send every 3 minutes a PONG-message without
listening to the IRC-channel and the server will gladly accept that
^_^ . That's what I did at the time I didn't know about the
timeout-option of a socket :) But most of the time it is just better
to follow the rules and end each line with \r\n (nice, didn't know
about that, so changed it in my script :) ), send a PONG-msg followed
by everything that was send after the PING-message, etc, etc.
2010/12/9 Bryan Tong Minh <bryan.tongminh(a)gmail.com>om>:
On Thu, Dec 9, 2010 at 5:36 PM, Platonides
<platonides(a)gmail.com> wrote:
Sumurai8 (DD) wrote:
Oops, forgot to put a return after the pongmsg,
like this:
IRC.send("PONG %s\n" % pong)
The IRC-server will try to process the line after it finds a \n in your msg
According to the protocol, it should be a CRLF (\r\n). Although a bare
\n seems to be commonly accepted as well.
In fact some ircds only look at the first 4 chars, PONG, regardless
whether there is a new line at all.
Bryan
_______________________________________________
Toolserver-l mailing list (Toolserver-l(a)lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list:
https://wiki.toolserver.org/view/Mailing_list_etiquette