Commit Diff


commit - 4d519cfdbf57344aeaa3610a302bf4c654c058f6
commit + ba3b22b851d1b20fc918569a50e328ed7edf906d
blob - c088f5cc2ea13bbbdecf42b45096f3a6df77c1c9
blob + 643dde42eec5490feba9acf923b818a85d478fe8
--- src/testsuite/join-test.e
+++ src/testsuite/join-test.e
@@ -61,7 +61,50 @@ expect {
        timeout { exit 1 }
        "405"
 }
+send "JOIN 0\r"
 
+send "JoIn #MultiMode\r"
+expect {
+       timeout { exit 1 }
+       "474 nick #MultiMode"
+}
+
+send "OPer TestOp 123\r"
+expect {
+	timeout { exit 1 }
+	"381"
+}
+
+send "Mode #MultiMode -b nick!~user\r"
+expect {
+       timeout { exit 1 }
+	"MODE #MultiMode -b nick!~user@*"
+}
+
+send "jOiN #MULTIMODE\r"
+expect {
+       timeout { exit 1 }
+       "@* JOIN :#MULTIMODE"
+}
+expect {
+       timeout { exit 1 }
+       "366"
+}
+send "ModE #MULTImode\r"
+expect {
+       timeout { exit 1 }
+       "324 nick #MultiMode +Pnt"
+}
+send "mODe #multimode +b\r"
+expect {
+       timeout { exit 1 }
+       "367 nick #MultiMode banned!~ghost@example.com ngircd.test.server"
+}
+expect {
+       timeout { exit 1 }
+       "368 nick #MultiMode"
+}
+
 send "quit\r"
 expect {
        timeout { exit 1 }
blob - ab240a7c4aa285fb68c55923fb49458031207504
blob + 233238aa1013f01092c49a211d10633d2dffa937
--- src/testsuite/ngircd-test1.conf
+++ src/testsuite/ngircd-test1.conf
@@ -63,4 +63,10 @@
 	Name = +ModelessChannel
 	Topic = A modeless Channel
 
+[Channel]
+	Name = MultiMode
+	Modes = +n +b nick!~user
+	Modes = +t
+	Modes = +b banned!~ghost@example.com
+
 # -eof-