From d4eb55c79fb130844a08279cd574a19f188ffa99 Mon Sep 17 00:00:00 2001 From: Brandon Beresini Date: Thu, 12 Jun 2008 21:54:05 -0700 Subject: Cleaned up PRIVMSG and NOTICE patches. --- src/testsuite/message-test.e | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'src/testsuite/message-test.e') 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 } -- cgit 1.4.1