Skip to content

Commit

Permalink
Test suite: Test multiple "Modes" lines in [Channel] sections
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarton committed Mar 29, 2020
1 parent 4d519cf commit ba3b22b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
43 changes: 43 additions & 0 deletions src/testsuite/join-test.e
Expand Up @@ -61,6 +61,49 @@ 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 {
Expand Down
6 changes: 6 additions & 0 deletions src/testsuite/ngircd-test1.conf
Expand Up @@ -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-

0 comments on commit ba3b22b

Please sign in to comment.