You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
4.4 KiB

#
# weechat -- trigger.conf
#
# WARNING: It is NOT recommended to edit this file by hand,
# especially if WeeChat is running.
#
# Use /set or similar command to change settings in WeeChat.
#
# For more info, see: https://weechat.org/doc/quickstart
#
[look]
enabled = on
monitor_strip_colors = off
[color]
flag_command = lightgreen
flag_conditions = yellow
flag_post_action = lightblue
flag_regex = lightcyan
flag_return_code = lightmagenta
regex = white
replace = cyan
trigger = green
trigger_disabled = red
[trigger]
beep.arguments = ""
beep.command = "/print -beep"
beep.conditions = "${tg_displayed} && (${tg_highlight} || ${tg_msg_pv})"
beep.enabled = on
beep.hook = print
beep.post_action = none
beep.regex = ""
beep.return_code = ok
bufferswitch.arguments = "buffer_switch"
bufferswitch.command = "/perlexec weechat::buffer_set(weechat::hdata_get_list(weechat::hdata_get('buffer'),'gui_buffer_last_displayed'), 'unread', 0)\;"
bufferswitch.conditions = ""
bufferswitch.enabled = on
bufferswitch.hook = signal
bufferswitch.post_action = none
bufferswitch.regex = ""
bufferswitch.return_code = ok
cmd_pass.arguments = "5000|input_text_display;5000|history_add;5000|irc_command_auth"
cmd_pass.command = ""
cmd_pass.conditions = ""
cmd_pass.enabled = on
cmd_pass.hook = modifier
cmd_pass.post_action = none
cmd_pass.regex = "==^((/(msg|m|quote) +nickserv +(id|identify|register|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|recover +[^ ]+) +)|/oper +[^ ]+ +|/quote +pass +|/set +[^ ]*password[^ ]* +|/secure +(passphrase|decrypt|set +[^ ]+) +)(.*)==${re:1}${hide:*,${re:+}}"
cmd_pass.return_code = ok
detach.arguments = "10000;0;0"
detach.command = "/allchan /eval /perlexec weechat::command('', '/command -buffer irc.\${server}.\${channel} core /buffer hide') if ((${date:%s} - \${buffer[\${info:irc_buffer,\${server},\${channel}}].lines.last_line.data.date}) > 100 && '\${window.buffer.full_name}' !~ 'irc.\${server}.\${channel}' && '\${buffer[\${info:irc_buffer,\${server},\${channel}}].hotlist}' eq '0x0')"
detach.conditions = ""
detach.enabled = on
detach.hook = timer
detach.post_action = none
detach.regex = ""
detach.return_code = ok
force_redraw.arguments = "window_switch;buffer_switch"
force_redraw.command = "/wait 1ms /redraw"
force_redraw.conditions = ""
force_redraw.enabled = on
force_redraw.hook = signal
force_redraw.post_action = none
force_redraw.regex = ""
force_redraw.return_code = ok
msg_auth.arguments = "5000|irc_message_auth"
msg_auth.command = ""
msg_auth.conditions = ""
msg_auth.enabled = on
msg_auth.hook = modifier
msg_auth.post_action = none
msg_auth.regex = "==^(.*(id|identify|register|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|recover +[^ ]+) +)(.*)==${re:1}${hide:*,${re:+}}"
msg_auth.return_code = ok
reattach.arguments = ""
reattach.command = "/command -buffer irc.$server.$channel core /buffer unhide"
reattach.conditions = "${buffer.hidden} == 1 && ${tg_tag_notify} == message"
reattach.enabled = on
reattach.hook = print
reattach.post_action = none
reattach.regex = ""
reattach.return_code = ok
reattach_on_switch.arguments = "buffer_switch"
reattach_on_switch.command = "/command -buffer ${buffer[${tg_signal_data}].full_name} core /buffer unhide"
reattach_on_switch.conditions = "${buffer[${tg_signal_data}].hidden} == 1"
reattach_on_switch.enabled = on
reattach_on_switch.hook = signal
reattach_on_switch.post_action = none
reattach_on_switch.regex = ""
reattach_on_switch.return_code = ok
server_pass.arguments = "5000|input_text_display;5000|history_add"
server_pass.command = ""
server_pass.conditions = ""
server_pass.enabled = on
server_pass.hook = modifier
server_pass.post_action = none
server_pass.regex = "==^(/(server|connect) .*-(sasl_)?password=)([^ ]+)(.*)==${re:1}${hide:*,${re:4}}${re:5}"
server_pass.return_code = ok
windowswitch.arguments = "window_switch"
windowswitch.command = "/perlexec weechat::buffer_set(weechat::window_get_pointer('${tg_signal_data}','buffer'), 'hotlist', -1);"
windowswitch.conditions = ""
windowswitch.enabled = on
windowswitch.hook = signal
windowswitch.post_action = none
windowswitch.regex = ""
windowswitch.return_code = ok
znctoserver.arguments = "irc_in_privmsg"
znctoserver.command = "/print -buffer server.${server} znc: ${text}"
znctoserver.conditions = "${host} == *status!znc@znc.in || ${host} == *controlpanel!znc@znc.in || ${host} == *identfile!znc@znc.in || ${host} == *q!znc@znc.in"
znctoserver.enabled = on
znctoserver.hook = modifier
znctoserver.post_action = none
znctoserver.regex = "/.*//"
znctoserver.return_code = ok