2 # PRIVMSG and NOTICE test
4 spawn telnet localhost 6789
11 send "user user . . :User\r"
17 send "privmsg nick :test\r"
20 "@* PRIVMSG nick :test"
35 send "privmsg nick,nick :test\r"
38 "@* PRIVMSG nick :test\r*@* PRIVMSG nick :test"
41 send "privmsg Nick,#testChannel,nick :test\r"
44 "@* PRIVMSG nick :test\r*401*@* PRIVMSG nick :test"
47 send "privmsg doesnotexist :test\r"
53 send "privmsg ~UsEr@ngIRCd.Test.Server :test\r"
56 "@* PRIVMSG nick :test"
64 send "privmsg nick :test\r"
75 # The following two tests using "localhost" as host name
76 # had to be disabled, because there are operating systems
77 # out there, that use "localhost.<domain>" as host name
78 # for 127.0.0.1 instead of just "localhost".
79 # (for example OpenBSD 4, OpenSolaris, ...)
81 #send "privmsg ~user\%localhost :test\r"
84 # "@* PRIVMSG nick :test"
87 #send "privmsg Nick!~User@LocalHost :test\r"
90 # "@* PRIVMSG nick :test"
100 send "privmsg nick :test\r"
112 send "privmsg \$ngircd.test.server :test\r"
118 send "privmsg #*.de :test\r"
124 send "oper TestOp 123\r"
126 send "privmsg \$ngircd.test.server :test\r"
129 "@* PRIVMSG nick :test"
132 send "privmsg \$*.test*.server :test\r"
135 "@* PRIVMSG nick :test"
138 send "privmsg \$noDotServer :test\r"