diff options
| author | Brandon Beresini <beresini@google.com> | 2008-06-12 21:54:05 -0700 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2008-07-27 01:23:20 +0200 |
| commit | d4eb55c79fb130844a08279cd574a19f188ffa99 (patch) | |
| tree | d934d133af32fb2c6c2762bf0adba64285dac804 /src/testsuite/message-test.e | |
| parent | 2546a13ad2949192eb70bf21e114ec60af287ee4 (diff) | |
| download | ngircd-d4eb55c79fb130844a08279cd574a19f188ffa99.tar.gz ngircd-d4eb55c79fb130844a08279cd574a19f188ffa99.zip | |
Cleaned up PRIVMSG and NOTICE patches.
Diffstat (limited to 'src/testsuite/message-test.e')
| -rw-r--r-- | src/testsuite/message-test.e | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/testsuite/message-test.e b/src/testsuite/message-test.e index 00033464..dd164822 100644 --- a/src/testsuite/message-test.e +++ b/src/testsuite/message-test.e @@ -1,5 +1,3 @@ -# $Id: mode-test.e,v 1.7 2008/02/16 11:27:49 fw Exp $ - spawn telnet localhost 6789 expect { timeout { exit 1 } @@ -43,14 +41,31 @@ expect { "@* PRIVMSG nick :test\r*401*@* PRIVMSG nick :test" } -send "JOIN #testChannel\r" - send "privmsg doesnotexist :test\r" expect { timeout { exit 1 } "401" } +send "privmsg ~user@ngircd.test.server :test\r" +expect { + timeout { exit 1 } + "@* PRIVMSG nick :test" +} + + +send "privmsg ~user\%localhost :test\r" +expect { + timeout { exit 1 } + "@* PRIVMSG nick :test" +} + +send "privmsg nick!~user@localhost :test\r" +expect { + timeout { exit 1 } + "@* PRIVMSG nick :test" +} + send "away :away\r" expect { timeout { exit 1 } |