X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=tests%2Fbug-2328334.cmd;fp=tests%2Fbug-2328334.cmd;h=18500af43a1f07594ed7e1e36dafc37094b34bee;hp=0000000000000000000000000000000000000000;hb=0400a5a6479398d82526785c18c0df8bc8b92dce;hpb=d17e10da972ce5776c60b4c317267c6abe0e1ead diff --git a/tests/bug-2328334.cmd b/tests/bug-2328334.cmd new file mode 100644 index 0000000..18500af --- /dev/null +++ b/tests/bug-2328334.cmd @@ -0,0 +1,15 @@ +define srv1 localhost:7601 +define srv1-name irc.example.net +define cl1-nick Op3rm4n +define channel1 #1234567890123456789012345678901234567890123456789 +define channel2 #12345678901234567890123456789012345678901234567890 + + +# Connect a client and try to join the two channels. +# The second channel's name is one character too long, and should be truncated. +connect cl1 %cl1-nick% oper %srv1% :Some Channel Operator +:cl1 join %channel1% +:cl1 join %channel2% +:cl1 expect %srv1-name% 403 %channel2% :No such channel +# Force cl1 to do something else so the expect is checked. +:cl1 part %channel1%