RE: Kat: Irc.exw

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 10 Jun 2001, at 16:53, Grape Vine wrote:

> 
> I trap right after the notify trap
> 
> if equal(data[1],"303") then puts(1,"Notify: "&data[3]) end if
> 
> if equal(data[1],"PING") then SendToServer(sock_connect[2],"PRIVMSG 
> #test PINGPONG\n") end if

Errrrrrrr,,,, if your data is what is recieved from the socket, then the server 
PING will be data[1], but the 303 will be data[2]. Also, the reply to a server 
PING isn't to send anything to the channel, you haveto reply to the server, 
that's why you haveto extract from the recieved where the data came from. 
Mode settings especially. This is also where a goto would be really helpful, 
after all the various ways of parsing the data formats, a "goto :processit" 
would be a nice simple way to skip all the rest of the parsing tests.

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu