1234567891011121314151617181920212223242526272829303132 |
- spawn telnet localhost 6789
- expect {
- timeout { exit 1 }
- "Connected"
- }
- send "nick nick\r"
- send "user user . . :User\r"
- expect {
- timeout { exit 1 }
- "376"
- }
- send "JOIN +Channel\r"
- expect {
- timeout { exit 1 }
- "@* JOIN :+Channel"
- }
- send "mode +Channel +t\r"
- expect {
- timeout { exit 1 }
- "477"
- }
- send "quit\r"
- expect {
- timeout { exit 1 }
- "Connection closed"
- }
- # -eof-
|