gist/irc/weechat/triggers.md

29 lines
1.0 KiB
Markdown
Raw Normal View History

2024-06-19 07:53:27 +02:00
<!-- @format -->
2023-03-16 18:53:28 +01:00
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [WeeChat Triggers](#weechat-triggers)
- [msgid visibility](#msgid-visibility)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2022-01-10 14:57:07 +01:00
# WeeChat Triggers
2023-02-26 18:01:13 +01:00
- [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)
2022-01-10 14:57:07 +01:00
## msgid visibility
```
/trigger add msgid print "" "${tg_tag_irc_msgid}" "" "/print -buffer ${buffer.full_name} [msgid: ${tg_tag_irc_msgid} ]
```
2024-06-19 07:53:27 +02:00
This adds a `[msgid: <message ID> ]` below all messages, which can then be
entered to Ergo's `/msg HistServ delete`.
2022-01-10 14:57:07 +01:00
2024-06-19 07:53:27 +02:00
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.