blob: 35d109e9be4d903e0a886c7d81ca434e4c67ea2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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-
|