summaryrefslogtreecommitdiff
path: root/deprecated-ngircd/src/testsuite/opless-channel-test.e
blob: cd4f9a0bc067f9714d0c7b54ab3aa523e13a2a45 (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
33
# ngIRCd test suite
# Op-less channel test

spawn telnet 127.0.0.1 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 }
       "ERROR :Closing connection"
}