irc/weechat: add triggers.md

This commit is contained in:
Aminda Suomalainen 2022-01-10 15:57:07 +02:00
parent f327785208
commit ecec834b28
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

18
irc/weechat/triggers.md Normal file
View File

@ -0,0 +1,18 @@
# WeeChat Triggers
* [WeeChat Trigger plugin documentation](https://weechat.org/files/doc/stable/weechat_user.en.html#trigger)
* [Triggers at WeeChat GitHub Wiki](https://github.com/weechat/weechat/wiki/Triggers)
## msgid visibility
```
/trigger add msgid print "" "${tg_tag_irc_msgid}" "" "/print -buffer ${buffer.full_name} [msgid: ${tg_tag_irc_msgid} ]
```
This adds a `[msgid: <message ID> ]` below all messages, which can then be entered
to Ergo's `/msg HistServ delete`.
I improved this from `FiskFan1999` who had a `${channel}` instead of `${buffer.full_name}`
which was suggested by `trygveaa` on `#weechat` at LiberaChat, after I figured
out `${server}.${channel}` which was improper. I also added spaces to the last
part.