about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2012-10-08 12:15:34 +0200
committerAlexander Barton <alex@barton.de>2012-10-08 12:15:34 +0200
commit538e612a47ba8eb83e749e8fe57d27f9322cc717 (patch)
tree139f4eb3bfebbc4441c8f8a2e3d7b1bf8cd24f85 /src
parent9d97004a287589681342a0116746796f2764100c (diff)
downloadngircd-538e612a47ba8eb83e749e8fe57d27f9322cc717.tar.gz
ngircd-538e612a47ba8eb83e749e8fe57d27f9322cc717.zip
Test suite: add test for user mode "b"
Diffstat (limited to 'src')
-rw-r--r--src/testsuite/message-test.e16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/testsuite/message-test.e b/src/testsuite/message-test.e
index d0ffcef9..4cbc066e 100644
--- a/src/testsuite/message-test.e
+++ b/src/testsuite/message-test.e
@@ -53,6 +53,22 @@ expect {
 	"@* PRIVMSG nick :test"
 }
 
+send "mode nick +b\r"
+expect {
+	timeout { exit 1 }
+	"MODE nick :+b"
+}
+send "privmsg nick :test\r"
+expect {
+	timeout { exit 1 }
+	"976"
+}
+send "mode nick -b\r"
+expect {
+	timeout { exit 1 }
+	"MODE nick :-b"
+}
+
 # The following two tests using "localhost" as host name
 # had to be disabled, because there are operating systems
 # out there, that use "localhost.<domain>" as host name