Skip to content

feat(plugins): Add message signals#6781

Open
Nerixyz wants to merge 3 commits intoChatterino:masterfrom
Nerixyz:feat/channel-events
Open

feat(plugins): Add message signals#6781
Nerixyz wants to merge 3 commits intoChatterino:masterfrom
Nerixyz:feat/channel-events

Conversation

@Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Jan 29, 2026

This PR adds Channel:on_message{_appended, _replaced, s_cleared}. They use the same functionality as the display name changed signal and forward the respective signals in Channel.

They're all synchronous. This makes the implementation fairly straight forward, but also a trivial stack overflow. Other than Chatterino crashing, this shouldn't have any consequences, because the OS will kill the process. Note that a plugin can already halt Chatterino by executing an infinite loop, because plugins run in the GUI thread.

We still have to be careful that we don't destroy the channel as part of a callback (or at least delay that). For now that's not an issue.

@Mm2PL
Copy link
Collaborator

Mm2PL commented Jan 29, 2026 via email

@Mm2PL Mm2PL self-requested a review January 30, 2026 00:05
@pajlada pajlada added the hold for release Wait with merging this PR or fully exploring this issue until the next release has been published. label Jan 30, 2026
@Mm2PL Mm2PL modified the milestone: 2.6.0 Jan 31, 2026
@Mm2PL Mm2PL added the Feature: ALPHA Plugins Stuff related to ALPHA Lua plugin support label Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature: ALPHA Plugins Stuff related to ALPHA Lua plugin support hold for release Wait with merging this PR or fully exploring this issue until the next release has been published.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants