Skip to content

Add an initial weechat msgid script#6

Merged
pawelb0 merged 1 commit into
pawelb0:mainfrom
vmiklos:weechat
Jun 8, 2026
Merged

Add an initial weechat msgid script#6
pawelb0 merged 1 commit into
pawelb0:mainfrom
vmiklos:weechat

Conversation

@vmiklos

@vmiklos vmiklos commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Connect to matrirc with irssi, messages are prefixed with a tag like "[abc] ", so "!r abc foo" can be sent to reply to that message, but the same doesn't work in weechat.

This happens because for irssi, irssi/matrirc.pl.in provides this functionality.

Start a weechat version of that in Python: if the server sends us a msgid, then expose that to the user in a similar way.

Note that weechat automatically sends the message-tags capability to the server, so we don't need a connect hook, just an irc_in_privmsg hook, and that one seems to work for both channels and direct messages.

Connect to matrirc with irssi, messages are prefixed with a tag like
"[abc] ", so "!r abc foo" can be sent to reply to that message, but the
same doesn't work in weechat.

This happens because for irssi, irssi/matrirc.pl.in provides this
functionality.

Start a weechat version of that in Python: if the server sends us a
msgid, then expose that to the user in a similar way.

Note that weechat automatically sends the message-tags capability to the
server, so we don't need a connect hook, just an irc_in_privmsg hook,
and that one seems to work for both channels and direct messages.
@pawelb0 pawelb0 merged commit 695cec0 into pawelb0:main Jun 8, 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