From 5208e6bac764c174f5f65ae165c3e5f3f9801027 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Tue, 24 Dec 2019 13:28:26 -0500 Subject: Reconfigure ERC for playing with pounce instead of ZNC. --- jakob.org | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'jakob.org') diff --git a/jakob.org b/jakob.org index 0d0ae25..37a6968 100644 --- a/jakob.org +++ b/jakob.org @@ -1710,12 +1710,16 @@ Functions for connecting to and authenticating with my IRC bouncer. (error "No secret for bouncer's auth entry.")) (funcall secretf)))) +(defvar *bouncer-port-alist* '(("freenode" . 6697) + ("tildetown" . 6671))) + (defun connect-bouncer (server) "Connect to `SERVER' on the bouncer and rename the buffer" - (let ((password (format "%s/%s:%s" "jakob" server (read-bouncer-password)))) - (erc-tls :server "jakob.space" :port 6697 :password password) - (erc-with-buffer ((get-buffer "jakob.space:6697") - (rename-buffer server))))) + (let* ((port (cdr (assoc server *bouncer-port-alist*))) + (buf (erc-tls :server "jakob.space" + :port port + :password (read-bouncer-password)))) + (erc-with-buffer (buf (rename-buffer server))))) #+END_SRC Functions for connecting to and authenticating with an instance of Bitlbee. -- cgit v1.3