opless-channel-test.e 436 B

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