Skip to content

Conversation

@Dune-jr
Copy link
Member

@Dune-jr Dune-jr commented Apr 24, 2019

I usually ignore players who flood the chat, it would be nice to clear the chat history too. This does not erase the messages from the buffer, so a un-ignore would restore them.

Edit: fixes #1634

if(Line.m_aText[0] == 0)
break;

if(Line.m_ClientID && m_pClient->m_aClients[i].m_ChatIgnore)
Copy link
Member

@oy oy Apr 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should check if 'ClientID is >= 0' and then use it as index for the clients, 'i' is line number

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, not sure how this didn't show up during testing

@oy oy merged commit f4a18aa into teeworlds:master Apr 26, 2019
@Dune-jr Dune-jr deleted the task-delete-ignored branch April 26, 2019 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove messages from chat history when muting someone

2 participants