mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 09:50:29 +00:00
Test suite: Test multiple "Modes" lines in [Channel] sections
This commit is contained in:
parent
4d519cfdbf
commit
ba3b22b851
@ -61,6 +61,49 @@ expect {
|
|||||||
timeout { exit 1 }
|
timeout { exit 1 }
|
||||||
"405"
|
"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"
|
send "quit\r"
|
||||||
expect {
|
expect {
|
||||||
|
@ -63,4 +63,10 @@
|
|||||||
Name = +ModelessChannel
|
Name = +ModelessChannel
|
||||||
Topic = A modeless Channel
|
Topic = A modeless Channel
|
||||||
|
|
||||||
|
[Channel]
|
||||||
|
Name = MultiMode
|
||||||
|
Modes = +n +b nick!~user
|
||||||
|
Modes = +t
|
||||||
|
Modes = +b banned!~ghost@example.com
|
||||||
|
|
||||||
# -eof-
|
# -eof-
|
||||||
|
Loading…
Reference in New Issue
Block a user