Skip to content

Instantly share code, notes, and snippets.

@sim642
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sim642/e8a88284eec095d9d6c9 to your computer and use it in GitHub Desktop.
Save sim642/e8a88284eec095d9d6c9 to your computer and use it in GitHub Desktop.
WeeChat password hiding triggers "fixed" for multiple args
/trigger addreplace cmd_pass2 modifier "6000|input_text_display;6000|history_add;6000|irc_command_auth" "" "/.*/${tg_string}/tg_modifier X^((/(msg|m|quote) +nickserv +(id|identify|register|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+) +)|/oper +[^ ]+ +|/quote +pass +|/set +[^ ]*password[^ ]* +|/secure +(passphrase|decrypt|set +[^ ]+) +)(.*)|.*X${re:+}Xtg_modifier /[^\ ]/*/tg_modifier X^((/(msg|m|quote) +nickserv +(id|identify|register|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+) +)|/oper +[^ ]+ +|/quote +pass +|/set +[^ ]*password[^ ]* +|/secure +(passphrase|decrypt|set +[^ ]+) +)(.*)X${re:1}${tg_modifier}X"
/trigger addreplace msg_auth2 modifier "6000|irc_message_auth" "" "/.*/${tg_string}/tg_modifier X^(.*(id|identify|register|ghost +[^ ]+|release +[^ ]+) +)(.*)|.*X${re:+}Xtg_modifier /[^\ ]/*/tg_modifier X^(.*(id|identify|register|ghost +[^ ]+|release +[^ ]+) +)(.*)X${re:1}${tg_modifier}X"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment