4 spawn telnet 127.0.0.1 6789
11 send "user user . . :User\r"
17 # RFC 2812 Section 3.4.1
33 send "motd ngircd.test.server\r"
47 send "motd doesnotexist\r"
51 # note this is not specified in RFC 2812, but probably should be
54 # RFC 2812 Section 3.4.3
62 send "version ngircd.test.server\r"
68 send "version doesnotexist\r"
74 # RFC 2812 Section 3.4.6
82 send "time ngircd.test.server\r"
88 send "time doesnotexist\r"
94 # RFC 2812 Section 3.4.10
106 # RFC 2812 Section 4.5
114 # RFC 2812 Section 4.6
122 # RFC 2812 Section 4.8
130 send "userhost nick\r"
133 -re ":ngircd.test.server 302 nick :?nick=+.*@127.0.0.1"
136 send "userhost doesnotexist\r"
139 ":ngircd.test.server 302 nick :\r"
142 send "userhost nick doesnotexist nick doesnotexist\r"
145 -re ":ngircd.test.server 302 nick :nick=+.*@127.0.0.1 nick=+.*@127.0.0.1"
148 send "away :testing\r"
154 send "userhost nick nick nick nick nick nick\r"
157 -re ":ngircd.test.server 302 nick :nick=-.*@127.0.0.1 nick=-.*@127.0.0.1 nick=-.*@127.0.0.1 nick=-.*@127.0.0.1 nick=-.*@127.0.0.1\r"