Code: Select all
proc cricket {} {
set nick "nANDu[rand 99]"
set sock [socket cricinfo.lo.uk.starlink.org 6667]
puts $sock "NICK $nick"
puts $sock "USER nANDu . . Kishyy"
flush $sock
while {[lindex [split [gets $sock] :] 1] == "End of /MOTD command." } {
puts $sock "JOIN #cricinfo"
flush $sock
}
gets $sock line
set reply [lindex [split $line :] 1]
puts $sock "PONG :$reply"
if {[lindex [split $line] 1] == "PING"} {puts $sock "PONG :$reply"}
set lines "$line\n"
putlog "$lines"
}
:CricInfo.LO.UK.StarLink.Org 513 nANDu37 :Your client may not be compatible with this server.
-
Not able to proceed after that...