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:
parent
bf9857beff
commit
e38e826862
1 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue