IRC:Chii/Quickauth for weechat

From AniDB
Jump to navigation Jump to search
Note After making changes via weechat commands, remember to persist the weechat config to disk by running /save, see weechat command save.

Hide password from weechat output and logs

Add Chii[AR] to the list of nicks to hide passwords for (in output and logs)

Note default is nickserv as of weechat version 4.5.2, see also weechat option irc.look.nicks_hide_password.

/set irc.look.nicks_hide_password "nickserv,chii[ar]"

Extend the hide password regular expression to match Chii[AR]'s auth command

Note default is without auth +[^ ]+ as of weechat version 4.5.2, see also weechat trigger.

/set trigger.trigger.cmd_pass.regex = "==^((/(msg|m|quote) +(-server +[^ ]+ +)?nickserv +(id|identify|set +password|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|recover +[^ ]+|auth +[^ ]+) +)|/oper +[^ ]+ +|/quote +pass +|/set +[^ ]*password[^ ]* +|/secure +(passphrase|decrypt|set +[^ ]+) +)(.*)==${re:1}${hide:*,${re:+}}"

Configure command to log in with Chii[AR]

Set weechat secure passphrase

Set a passphrase for secure data in weechat if you have not done so already.

Warning If no passphrase is set, your credentials will being stored in plaintext in sec.conf, see weechat command secure.

/secure passphrase <your_passphrase>

Set your secure password

/secure set chii <your_anidb_password>

Add alias to login

Note This assumes SynIRC is set with server name synirc.

/alias add chii /eval /msg -server synirc chii[ar] auth <your_anidb_username> ${sec.data.chii}

Log in with Chii[AR]

Warning As the alias does not check whether Chii[AR] is the actual Chii[AR], check /whois chii[ar] before logging in. The output should have a line containing the string [Chii[AR]] is identified for this nick.

/chii