feat(gs/emacs): Update irc-connect command for new servers

No longer connecting to freenode - but I *am* now connecting to both
hackint and libera, so add a prompt to the command to decide which one I
connect to

Change-Id: Iae315ddab753cf9c365cbee7abd94213af656d4c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3177
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
This commit is contained in:
Griffin Smith 2021-06-05 17:00:31 +02:00 committed by grfn
parent bf9857beff
commit e38e826862

View file

@ -3,9 +3,15 @@
(require 'erc)
(require 'alert)
(defun irc-connect ()
(interactive)
(let ((pw (s-trim (shell-command-to-string "pass irccloud/freenode")))
(defvar irc-servers
'("hackint"
"libera"))
(defun irc-connect (server)
(interactive
(list (ivy-read "Server: " irc-servers)))
(let ((pw (s-trim (shell-command-to-string
(format "pass irccloud/%s" server))))
(gnutls-verify-error nil))
(erc-tls :server "bnc.irccloud.com"
:port 6697