Skip to content

Commit

Permalink
app/irc: Swap examples to cite libera.chat
Browse files Browse the repository at this point in the history
  • Loading branch information
fosskers committed May 29, 2021
1 parent 69ea5c2 commit c3ec594
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions modules/app/irc/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ takes the same arguments as ~circe-network-options~.
#+BEGIN_SRC emacs-lisp :tangle no
;; if you omit =:host=, ~SERVER~ will be used instead.
(after! circe
(set-irc-server! "chat.freenode.net"
(set-irc-server! "irc.libera.chat"
`(:tls t
:port 6697
:nick "doom"
Expand All @@ -100,25 +100,25 @@ password store.
~+pass-get-user~ and ~+pass-get-secret~ can help here:

#+BEGIN_SRC emacs-lisp :tangle no
(set-irc-server! "chat.freenode.net"
(set-irc-server! "irc.libera.chat"
`(:tls t
:port 6697
:nick "doom"
:sasl-username ,(+pass-get-user "irc/freenode.net")
:sasl-password ,(+pass-get-secret "irc/freenode.net")
:sasl-username ,(+pass-get-user "irc/libera.chat")
:sasl-password ,(+pass-get-secret "irc/libera.chat")
:channels ("#emacs")))
#+END_SRC

But wait, there's more! This stores your password in a public variable which
could be accessed or appear in backtraces. Not good! So we go a step further:

#+BEGIN_SRC emacs-lisp :tangle no
(set-irc-server! "chat.freenode.net"
(set-irc-server! "irc.libera.chat"
`(:tls t
:port 6697
:nick "doom"
:sasl-username ,(+pass-get-user "irc/freenode.net")
:sasl-password (lambda (&rest _) (+pass-get-secret "irc/freenode.net"))
:sasl-username ,(+pass-get-user "irc/libera.chat")
:sasl-password (lambda (&rest _) (+pass-get-secret "irc/libera.chat"))
:channels ("#emacs")))
#+END_SRC

Expand Down Expand Up @@ -151,9 +151,9 @@ username: myusername
(error "Password not found for %S" params))))

(defun my-nickserv-password (server)
(my-fetch-password :user "forcer" :host "irc.freenode.net"))
(my-fetch-password :user "forcer" :host "irc.libera.chat"))

(set-irc-server! "chat.freenode.net"
(set-irc-server! "irc.libera.chat"
'(:tls t
:port 6697
:nick "doom"
Expand Down

0 comments on commit c3ec594

Please sign in to comment.