I cant figure it out - doc after doc port after port - its killin me.

How do you join an irc channel?  I did the open port stuff I can do it with
telnet but not with REBOL.  Look at my script below and tell me whats wrong.
I understand I havent accounted for everything that IRC RFC states but
should I think have enough to contact the server and join the channel but
doesnt work.

Any ideas?

Paul Tretter

------------------------------------------


REBOL[]

irc-port: open/direct/string/no-wait [
        scheme: 'tcp
        host: "irc.mindspring.com"
        port-id: 6667
]
while [data: copy irc-port] [prin data]
insert irc-port "NICK tret^/"
close irc-port
irc-port: open/direct/string/no-wait [
        scheme: 'tcp
        host: "irc.mindspring.com"
        port-id: 6667
]

insert irc-port "USER tret rebol.dyndns.org irc.mindspring.com tret^/"
close irc-port
irc-port: open/direct/string/no-wait [
        scheme: 'tcp
        host: "irc.mindspring.com"
        port-id: 6667
]

insert irc-port reform "JOIN #REBOLGODS^/"
close irc-port


Reply via email to