Brief description
If a broadcaster applies a timeout to a moderator (nam_nam_bot in this case as an example) while he's sending many messages in a chat, some messages can appear after timeout is applied. This leads to strange behavior regarding /mods command - moderator status should be removed after a user is timed out, but in this case, moderator status stays. /mods command says that user is not a moderator and pubsub reports to the moderator that he has been unmodded.
Using /unmod results in a similar state at the end, but instead of receiving one or two messages after /unmod is done, /unmod sometimes just doesn't work while moderator is sending the messages (although you do receive You have removed NaM_NaM_BOT as a moderator of this channel.)
/mods doesn't return nam_nam_bot as moderator after this
Writing /mod nam_nam_bot says NaM_NaM_BOT is already a moderator of this channel.
Writing /unmod nam_nam_bot after that says NaM_NaM_BOT is not a moderator of this channel.
Writing /mod nam_nam_bot again says You have added NaM_NaM_BOT as a moderator of this channel.
At this point /mods returns correct information
Here's the raw TMI traffic of when the message is received after timeout, doesn't include the steps mentioned above:
Set up a couple connections to prepare to write many messages in chat using user1
While user1 is writing the messages, time him out for a couple of seconds as a broadcaster
If you're lucky, one or more messages will appear after user1CLEARCHAT message is received
/mods and actual moderation status desynchronization
Expected behavior
User is unmodded after he's timed out, despite receiving messages after CLEARCHAT is received
OR
User can't write messages after being timed out, no matter how fast he does it
Screenshots
(as seen in Chatterino2, first gray message is from TMI, second one is from pubsub)
(as seen in Chatterino2)
Additional context or questions
It was a known fact that you could write a message after you are timed out, even if you're not a fast-writing moderator, but I am not able to reproduce that anymore.
Brief description If a broadcaster applies a timeout to a moderator (
nam_nam_bot
in this case as an example) while he's sending many messages in a chat, some messages can appear after timeout is applied. This leads to strange behavior regarding/mods
command - moderator status should be removed after a user is timed out, but in this case, moderator status stays./mods
command says that user is not a moderator and pubsub reports to the moderator that he has been unmodded.Using
/unmod
results in a similar state at the end, but instead of receiving one or two messages after/unmod
is done,/unmod
sometimes just doesn't work while moderator is sending the messages (although you do receiveYou have removed NaM_NaM_BOT as a moderator of this channel.
)/mods
doesn't returnnam_nam_bot
as moderator after this/mod nam_nam_bot
saysNaM_NaM_BOT is already a moderator of this channel.
/unmod nam_nam_bot
after that saysNaM_NaM_BOT is not a moderator of this channel.
/mod nam_nam_bot
again saysYou have added NaM_NaM_BOT as a moderator of this channel.
/mods
returns correct informationHere's the raw TMI traffic of when the message is received after timeout, doesn't include the steps mentioned above:
How to reproduce
user1
user1
user1
is writing the messages, time him out for a couple of seconds as a broadcasteruser1
CLEARCHAT
message is received/mods
and actual moderation status desynchronizationExpected behavior
User is unmodded after he's timed out, despite receiving messages after
CLEARCHAT
is received OR User can't write messages after being timed out, no matter how fast he does itScreenshots (as seen in Chatterino2, first gray message is from TMI, second one is from pubsub) (as seen in Chatterino2)
Additional context or questions It was a known fact that you could write a message after you are timed out, even if you're not a fast-writing moderator, but I am not able to reproduce that anymore.