summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob L. Kreuze2019-12-24 13:28:26 -0500
committerJakob L. Kreuze2019-12-24 13:28:26 -0500
commit5208e6bac764c174f5f65ae165c3e5f3f9801027 (patch)
treefce421ca18a4f196c1fc00112bbf2829bb391da0
parentc00a3e547581f4a19f934a8486d83e07e23f13fb (diff)
Reconfigure ERC for playing with pounce instead of ZNC.
-rw-r--r--jakob.org12
1 files changed, 8 insertions, 4 deletions
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.

© 2015 - 2026 Jakob L. Kreuze