Blob


1 spawn telnet localhost 6789
2 expect {
3 timeout { exit 1 }
4 "Connected"
5 }
7 send "nick nick\r"
8 send "user user . . :User\r"
9 expect {
10 timeout { exit 1 }
11 "376"
12 }
14 send "JOIN +Channel\r"
15 expect {
16 timeout { exit 1 }
17 "@* JOIN :+Channel"
18 }
20 send "mode +Channel +t\r"
21 expect {
22 timeout { exit 1 }
23 "477"
24 }
26 send "quit\r"
27 expect {
28 timeout { exit 1 }
29 "Connection closed"
30 }
32 # -eof-