summaryrefslogtreecommitdiff
path: root/jakob.org
diff options
context:
space:
mode:
Diffstat (limited to 'jakob.org')
-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