opless-channel-test.e 471 B

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