2 # weechat -- trigger.conf
4 # WARNING: It is NOT recommended to edit this file by hand,
5 # especially if WeeChat is running.
7 # Use /set or similar command to change settings in WeeChat.
9 # For more info, see: https://weechat.org/doc/quickstart
14 monitor_strip_colors = off
17 flag_command = lightgreen
18 flag_conditions = yellow
19 flag_post_action = lightblue
20 flag_regex = lightcyan
21 flag_return_code = lightmagenta
25 trigger_disabled = red
29 beep.command = "/print -beep"
30 beep.conditions = "${tg_highlight} || ${tg_msg_pv}"
33 beep.post_action = none
36 cmd_pass.arguments = "5000|input_text_display;5000|history_add;5000|irc_command_auth"
38 cmd_pass.conditions = ""
40 cmd_pass.hook = modifier
41 cmd_pass.post_action = none
42 cmd_pass.regex = "==^((/(msg|quote) +nickserv +(id|identify|register|ghost +\S+|release +\S+|regain +\S+) +)|/oper +\S+ +|/quote +pass +|/set +\S*password\S* +|/secure +(passphrase|decrypt|set +\S+) +)(.*)==$1$.*+"
43 cmd_pass.return_code = ok
44 msg_auth.arguments = "5000|irc_message_auth"
46 msg_auth.conditions = ""
48 msg_auth.hook = modifier
49 msg_auth.post_action = none
50 msg_auth.regex = "==^(.*(id|identify|register|ghost +\S+|release +\S+) +)(.*)==$1$.*+"
51 msg_auth.return_code = ok
52 server_pass.arguments = "5000|input_text_display;5000|history_add"
53 server_pass.command = ""
54 server_pass.conditions = ""
55 server_pass.enabled = on
56 server_pass.hook = modifier
57 server_pass.post_action = none
58 server_pass.regex = "==^(/(server|connect) .*-(sasl_)?password=)(\S+)(.*)==$1$.*4$5"
59 server_pass.return_code = ok