123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- # $Id: mode-test.e,v 1.7 2008/02/16 11:27:49 fw Exp $
- spawn telnet localhost 6789
- expect {
- timeout { exit 1 }
- "Connected"
- }
- send "nick nick\r"
- send "user user . . :User\r"
- expect {
- timeout { exit 1 }
- "376"
- }
- send "mode nick +i\r"
- expect {
- timeout { exit 1 }
- "@* MODE nick :+i"
- }
- send "mode nick\r"
- expect {
- timeout { exit 1 }
- "221 nick +i"
- }
- send "mode nick -i\r"
- expect {
- timeout { exit 1 }
- "@* MODE nick :-i"
- }
- send "join #usermode\r"
- expect {
- timeout { exit 1 }
- "@* JOIN :#usermode"
- }
- expect {
- timeout { exit 1 }
- "366"
- }
- send "mode #usermode +v nick\r"
- expect {
- timeout { exit 1 }
- "@* MODE #usermode +v nick\r"
- }
- send "mode #usermode +h nick\r"
- expect {
- timeout { exit 1 }
- "@* MODE #usermode +h nick\r"
- }
- send "mode #usermode +a nick\r"
- expect {
- timeout { exit 1 }
- "482 nick"
- }
- send "mode #usermode +q nick\r"
- expect {
- timeout { exit 1 }
- "482 nick"
- }
- send "mode #usermode -vho nick nick nick\r"
- expect {
- timeout { exit 1 }
- "@* MODE #usermode -vho nick nick nick"
- }
- send "oper TestOp 123\r"
- expect {
- timeout { exit 1 }
- "MODE nick :+o"
- }
- expect {
- timeout { exit 1 }
- "381 nick"
- }
- send "mode nick\r"
- expect {
- timeout { exit 1 }
- "221 nick +o"
- }
- send "mode #usermode +a nick\r"
- expect {
- timeout { exit 1 }
- "@* MODE #usermode +a nick"
- }
- send "mode #usermode +q nick\r"
- expect {
- timeout { exit 1 }
- "@* MODE #usermode +q nick"
- }
- send "names #usermode\r"
- expect {
- timeout { exit 1 }
- "353 nick = #usermode :~nick"
- }
- expect {
- timeout { exit 1 }
- "366 nick #usermode"
- }
- send "part #usermode\r"
- expect {
- timeout { exit 1 }
- "@* PART #usermode"
- }
- send "join #channel\r"
- expect {
- timeout { exit 1 }
- "@* JOIN :#channel"
- }
- expect {
- timeout { exit 1 }
- "366"
- }
- send "mode #channel +tn\r"
- expect {
- timeout { exit 1 }
- "@* MODE #channel +tn"
- }
- send "mode #channel\r"
- expect {
- timeout { exit 1 }
- "324 nick #channel +tn"
- }
- send "mode #channel +v nick\r"
- expect {
- timeout { exit 1 }
- "@* MODE #channel +v nick\r"
- }
- send "mode #channel +I nick1\r"
- expect {
- timeout { exit 1 }
- "@* MODE #channel +I nick1!*@*"
- }
- send "mode #channel +b nick2@domain\r"
- expect {
- timeout { exit 1 }
- "@* MODE #channel +b nick2!*@domain"
- }
- send "mode #channel +I nick3!user\r"
- expect {
- timeout { exit 1 }
- "@* MODE #channel +I nick3!user@*"
- }
- send "mode #channel -vo nick nick\r"
- expect {
- timeout { exit 1 }
- "@* MODE #channel -vo nick nick\r"
- }
- send "quit\r"
- expect {
- timeout { exit 1 }
- "Connection closed"
- }
- # -eof-
|