IRC:Chii/Quickauth for weechat: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (recommend running /save to persist config changes) |
||
Line 1: | Line 1: | ||
{{eyecatch|Note|After making changes via weechat commands, remember to persist the weechat config to disk by running <code>/save</code>, see [https://weechat.org/files/doc/devel/weechat_user.en.html#command_weechat_save weechat command save].}} | |||
== Hide password from weechat output and logs == | == Hide password from weechat output and logs == | ||
=== Add Chii[AR] to the list of nicks to hide passwords for (in output and logs). === | === Add Chii[AR] to the list of nicks to hide passwords for (in output and logs). === | ||
{{eyecatch|Note|default is <code>nickserv</code> as of weechat version <code>4.5.2</code>, see also [https://weechat.org/files/doc/devel/weechat_user.en.html#option_irc.look.nicks_hide_password weechat option irc.look.nicks_hide_password].}} | {{eyecatch|Note|default is <code>nickserv</code> as of weechat version <code>4.5.2</code>, see also [https://weechat.org/files/doc/devel/weechat_user.en.html#option_irc.look.nicks_hide_password weechat option irc.look.nicks_hide_password].}} | ||
Line 11: | Line 14: | ||
=== Set weechat secure passphrase === | === Set weechat secure passphrase === | ||
Set a passphrase for secure data in weechat if you have not done so already. | Set a passphrase for secure data in weechat if you have not done so already. | ||
{{eyecatch|Warning|If no passphrase is set, your credentials will being stored in '''plaintext''' in <code>sec.conf</code>, see [https://weechat.org/files/doc/devel/weechat_user.en.html#command_weechat_secure weechat command secure]. | {{eyecatch|Warning|If no passphrase is set, your credentials will being stored in '''plaintext''' in <code>sec.conf</code>, see [https://weechat.org/files/doc/devel/weechat_user.en.html#command_weechat_secure weechat command secure].}} | ||
}} | |||
<code>/secure passphrase <your_passphrase></code> | <code>/secure passphrase <your_passphrase></code> | ||
Revision as of 14:32, 22 March 2025
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