aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-12-20 19:20:58 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2017-06-01 18:38:10 +0200
commitefd826e0f88e94662c0369c3b7357dddfe41983c (patch)
treeb3af904e152ef246b5b7f69a9d47c8573396eafa
parente32417deca331079f0c107dcfaee8ce775fea00f (diff)
downloaddotfiles-efd826e0f88e94662c0369c3b7357dddfe41983c.tar.xz
weechat: Add userlabel trigger
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--weechat/trigger.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/weechat/trigger.conf b/weechat/trigger.conf
index e82ff4e..661293b 100644
--- a/weechat/trigger.conf
+++ b/weechat/trigger.conf
@@ -57,3 +57,11 @@ server_pass.hook = modifier
server_pass.post_action = none
server_pass.regex = "==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==$1$.*4$5"
server_pass.return_code = ok
+userlabel.arguments = "weechat_print"
+userlabel.command = ""
+userlabel.conditions = ""
+userlabel.enabled = on
+userlabel.hook = modifier
+userlabel.post_action = none
+userlabel.regex = "/^[^@]+@(.+)$/${re:1}/tg_tag_host /^.+$/${re:0} ${color:darkgray}${plugins.var.trigger.userlabel.${tg_tag_host}}"
+userlabel.return_code = ok