weechat / scripts

Official scripts for WeeChat.
https://weechat.org/scripts/
232 stars 223 forks source link

irssi_awaylog.py: matrix support #523

Open vmiklos opened 1 year ago

vmiklos commented 1 year ago

Script

Feature description

The awaylog script nicely catches private messages or highlights when a given IRC server is away. In case the user uses /away -all, then it's a bit unexpected, that all such messages are logged for IRC servers, but not for Matrix servers (using weechat-matrix).

It seems weechat-matrix (or Matrix itself?) doesn't really have an away state, so what I can think of is a simple global bool in the script. That way if the user does /away -all, then we would also start logging Matrix messages.

@hrkfdn would you take a PR that implements this?

OK to do this by default or would you prefer to opt in via a setting?

So far I have a local version that does this by default. Thanks.