irctest.server_tests.redact

IRCv3 draft message-redaction

RedactTestCase

ergo
sable
testCantRedactOthersPrivmsg

Tests that a non-operator cannot redact another user's message.

.s
testOpRedactOthersPrivmsg

Tests that a channel operator can redact another user's message.

.s
testOpRedactSelfPrivmsg

Tests that a channel operator can redact a message they sent themselves.

.s
testOperCanRedactInUnjoinedChannel
Tests that an IRC operator can redact a message in a channel they

are not joined to.

.d
testRedactInvalidTarget

Test redacting with an invalid target.

.s
testRedactNotRelayedToNonSupportingClients

Test that REDACT is not sent to clients without the capability.

.s
testRedactTagmsg

Test redaction of a TAGMSG.

.s
testRedactUnknownMsgid

Test redacting a message with an unknown msgid.

.s
testRedactWithReason

Test redaction with a reason parameter.

.s
testRedactedMessageDisappearsFromChathistory

Test that redacted messages are excluded from CHATHISTORY responses.

Per the spec, after a message is redacted, CHATHISTORY responses SHOULD either: - Exclude it entirely, OR - Include a REDACT message after the redacted message

.d

RedactWithServicesTestCase

ergo
sable
testOpInOtherChannelCanRedactOwnButNotOthers
Tests that being a channel operator in one channel does not grant

redaction privileges in another channel: alice can still redact her own messages in #bob, but cannot redact bob's messages there.

.s
testRedactDirectMessage

Test redacting a direct message between two users.

.s