Skip to content

Instantly share code, notes, and snippets.

@perplexa
Last active February 8, 2020 17:37
Show Gist options
  • Save perplexa/acb0ab7b3e8f7b0523b620b2009b12d7 to your computer and use it in GitHub Desktop.
Save perplexa/acb0ab7b3e8f7b0523b620b2009b12d7 to your computer and use it in GitHub Desktop.

Weechat operator config candy for EFNet


Create additional server notice windows on connect

/set irc.server.efnet.command "/buffer add efnet.conn; /buffer add efnet.opm"

Redirect OPM & DroneMon messages to efnet.opm window

 /buffer add efnet.opm
 /set logger.level.core.efnet.opm 0

 /trigger addreplace efnet_opm line "*;irc.server.efnet" "${message} =~ (opm|dronemon)" "/.*/core.efnet.opm/buffer_name /.*\*{3} Notice -- //message /notify_private//tags"

# deprecated & potentially BROKEN
# /trigger add efnet_opm modifier "1000|irc_in2_notice" "${host} == irc.efnet.nl && ${text} =~ (opm|dronemon)" "/.*//" "/print -buffer efnet.OPM -tags irc_notice,notify_message,log1 ${text}"

Redirect client connects, disconnects, D/G/K-Lines to efnet.conn

 /buffer add efnet.conn
 /set logger.level.core.efnet.conn 0

 /trigger addreplace efnet_conn line "*;irc.server.efnet" "${message} =~ (?-i)\*{3} Notice -- (CLI(CONN|EXIT)|[DKG]LINE|Adding throttle|Invalid username|Too many (user|local) connections|HTTP Proxy)" "/.*/core.efnet.conn/buffer_name /.*\*{3} Notice -- //message /notify_private//tags"

# deprecated & potentially BROKEN
# /trigger add efnet_conn modifier "1000|irc_in2_notice" "${host} == irc.efnet.nl && ${text} =~ (?-i)(CLI(CONN|EXIT)|[DGK]LINE)" "/.*//" "/print -buffer efnet.conn -tags irc_notice,notify_message,log1 ${text}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment