IRC:Chii/Quickauth for weechat: Difference between revisions

From AniDB
Jump to navigation Jump to search
(add to IRC category)
mNo edit summary
Line 22: Line 22:
<code>/alias add chii /eval /msg -server synirc chii[ar] auth <your_anidb_username> ${sec.data.chii}</code>
<code>/alias add chii /eval /msg -server synirc chii[ar] auth <your_anidb_username> ${sec.data.chii}</code>


== log in with Chii[AR] ==
== Log in with Chii[AR] ==
{{eyecatch|Warning|As the alias does not check whether Chii[AR] is the actual Chii[AR], check <code>/whois chii[ar]</code> before logging in. The output should have a line containing the string <code>[Chii[AR]] is identified for this nick</code>.}}
{{eyecatch|Warning|As the alias does not check whether Chii[AR] is the actual Chii[AR], check <code>/whois chii[ar]</code> before logging in. The output should have a line containing the string <code>[Chii[AR]] is identified for this nick</code>.}}
<code>/chii</code>
<code>/chii</code>


[[Category:IRC]]
[[Category:IRC]]

Revision as of 13:43, 22 March 2025

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