mirror of
https://gitea.blesmrt.net/mikaela/gist.git
synced 2024-11-01 16:09:23 +01:00
28 lines
1.1 KiB
Markdown
28 lines
1.1 KiB
Markdown
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
|
|
|
|
- [WeeChat Triggers](#weechat-triggers)
|
|
- [msgid visibility](#msgid-visibility)
|
|
|
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
|
|
# 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.
|