Skip to content

weechat, show msgid: handle CTCP ACTION (/me) messages#11

Merged
pawelb0 merged 1 commit into
pawelb0:mainfrom
vmiklos:weechat-msgid-action
Jun 22, 2026
Merged

weechat, show msgid: handle CTCP ACTION (/me) messages#11
pawelb0 merged 1 commit into
pawelb0:mainfrom
vmiklos:weechat-msgid-action

Conversation

@vmiklos

@vmiklos vmiklos commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

The "[msgid] " prefix was correctly inserted for plain messages, but not for /me style messages. Instead we got "[...] ^AACTION ...^A".

This happens because CTCP messages have an additional prefix before their body, and the naive prefixing broke that.

Fix the problem by explicitly checking for ^AACTION as a prefix and insert the msgid after that, so the result is like "* NICK [...] BODY".

Do this only for ACTION, till we run into an other type for CTCP message that wants this; msgid_rewrite_irc_action() in the irssi script is also specific to ACTION.

The "[msgid] " prefix was correctly inserted for plain messages, but not
for /me style messages. Instead we got "[...] ^AACTION ...^A".

This happens because CTCP messages have an additional prefix before
their body, and the naive prefixing broke that.

Fix the problem by explicitly checking for ^AACTION as a prefix and
insert the msgid after that, so the result is like "* NICK [...] BODY".

Do this only for ACTION, till we run into an other type for CTCP message
that wants this; msgid_rewrite_irc_action() in the irssi script is also
specific to ACTION.
@pawelb0

pawelb0 commented Jun 22, 2026

Copy link
Copy Markdown
Owner

Thank you!

@pawelb0 pawelb0 merged commit e45d47c into pawelb0:main Jun 22, 2026
8 checks passed
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.

2 participants